Re: [qubes-users] Adding a new / an extra virtual disk to a HVM in qubes 4.x

2020-07-06 Thread unman
On Sun, Jul 05, 2020 at 02:39:34PM -0700, keld@gmail.com wrote:
> thanks but the drive does not exist as you assume - i want to make the disk 
> from the existing volumegroup/disk-pool 
> I think i first need to allocate a lvm, then encrypt it ? and assign it 
> somehow 
> to get it to be persistent i think i need to also alter the XLM file used 
> to define the virtual machine.. 
> 
> I am still googling the fragments of how to do it - it would be a nice 
> feature to have it in the GUI as a "add another disk" option.
> 
> Regards Keld.
> 
> l??rdag den 4. juli 2020 kl. 03.39.56 UTC+2 skrev unman:
> 
> > On Thu, Jul 02, 2020 at 02:29:09AM -0700, Keld Norman wrote:
> > > I am trying to figure out how to add an extra virtual disk to a HVM 
> > > 
> > > I would like to just add a disk from the existing dom0 pool just like 
> > the 
> > > two disks assigned already (system and user) 
> > > 
> > > It is not that clear on how to do it - do any one here know if there is 
> > a 
> > > guide to do that in qubes v4.0
> > > 
> > > Best regards 
> > > Keld Norman
> > > 
> >
> > 1. Identify the drive that you want, and find the actual device.
> > You'll see (from ls -l ) that qubes/vm-qube-private is a link to some
> > device under /dev ; say /dev/dm-xx
> >
> > 2. Start the HVM with the disk attached:
> > `qvm-start HVM --hddisk=iso;/dev/xx`
> >
> > 3. The disk will be attached as /dev/xvdi
> >
> 

The convention here is not to top-post.
Please scroll to the bottom of the message before you start typing. Or
reply inline.
It only takes you seconds, makes it much easier to follow threads, and
cumulatively saves your fellow users hours.
Thanks.

Indeed, I had assumed that "add a disk from the existing pool" meant an
existing disk. This is a different question.
You will need to create a disk for use - it isn't clear why you mention
encryption, but you could encrypt if you wish.
You can either use the "qvm-start" method, or create a custom settings
file for the qube. This is documented at
https://dev.qubes-os.org/projects/core-admin/en/latest/libvirt.html

Depending on how you have configured the disk, you can create a custom
config which pulls n the disk. The information you need is at 
https://libvirt.org/formatdomain.html

If you hit a problem and need help, explain how you have configured the disk 
and post your
config file here.

unman

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/20200707024611.GB6920%40thirdeyesecurity.org.


Re: [qubes-users] Adding a new / an extra virtual disk to a HVM in qubes 4.x

2020-07-05 Thread keld....@gmail.com
thanks but the drive does not exist as you assume - i want to make the disk 
from the existing volumegroup/disk-pool 
I think i first need to allocate a lvm, then encrypt it ? and assign it 
somehow 
to get it to be persistent i think i need to also alter the XLM file used 
to define the virtual machine.. 

I am still googling the fragments of how to do it - it would be a nice 
feature to have it in the GUI as a "add another disk" option.

Regards Keld.

lørdag den 4. juli 2020 kl. 03.39.56 UTC+2 skrev unman:

> On Thu, Jul 02, 2020 at 02:29:09AM -0700, Keld Norman wrote:
> > I am trying to figure out how to add an extra virtual disk to a HVM 
> > 
> > I would like to just add a disk from the existing dom0 pool just like 
> the 
> > two disks assigned already (system and user) 
> > 
> > It is not that clear on how to do it - do any one here know if there is 
> a 
> > guide to do that in qubes v4.0
> > 
> > Best regards 
> > Keld Norman
> > 
>
> 1. Identify the drive that you want, and find the actual device.
> You'll see (from ls -l ) that qubes/vm-qube-private is a link to some
> device under /dev ; say /dev/dm-xx
>
> 2. Start the HVM with the disk attached:
> `qvm-start HVM --hddisk=iso;/dev/xx`
>
> 3. The disk will be attached as /dev/xvdi
>

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/96cba4c7-b617-4cfb-8f24-d7ac118740b0n%40googlegroups.com.


Re: [qubes-users] Adding a new / an extra virtual disk to a HVM in qubes 4.x

2020-07-03 Thread unman
On Thu, Jul 02, 2020 at 02:29:09AM -0700, Keld Norman wrote:
> I am trying to figure out how to add an extra virtual disk to a HVM 
> 
> I would like to just add a disk from the existing dom0 pool just like the 
> two disks assigned already (system and user) 
> 
> It is not that clear on how to do it - do any one here know if there is a 
> guide to do that in qubes v4.0
> 
> Best regards 
> Keld Norman
> 

1. Identify the drive that you want, and find the actual device.
You'll see (from ls -l ) that qubes/vm-qube-private is a link to some
device under /dev ; say /dev/dm-xx

2. Start the HVM with the disk attached:
`qvm-start HVM --hddisk=iso;/dev/xx`

3. The disk will be attached as /dev/xvdi

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/20200704013952.GC23414%40thirdeyesecurity.org.


[qubes-users] Adding a new / an extra virtual disk to a HVM in qubes 4.x

2020-07-02 Thread Keld Norman
I am trying to figure out how to add an extra virtual disk to a HVM 

I would like to just add a disk from the existing dom0 pool just like the 
two disks assigned already (system and user) 

It is not that clear on how to do it - do any one here know if there is a 
guide to do that in qubes v4.0

Best regards 
Keld Norman

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/fe1e08ee-3b46-4c20-b61d-eabf00be0c72o%40googlegroups.com.