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