|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] xvda1, xvda2 disk configuration with hvm
On Thu, Mar 08, 2018 at 10:59:35AM +1300, Juan Rossi wrote:
> We are converting some VMs from pv into hvm, we used to map the disks in
> the configuration file as follows:
>
> disk = [ 'phy:/dev/users/debian.img,xvda1,w',
> 'phy:/dev/users/debian.swapfs.swp,xvda9,w' ]
>
> so we are basically mapping block devices that have no partition tables,
> just file systems to xvdaX style devices.
>
> When moving into type=hvm we hit issues with this, if I am correct it is
> due qemu-dm and the need to have partition tables, mapping to raw disks
> and devices have the need to be in different denomination letter, eg
> /dev/users/debian.img,xvda1 /dev/users/debian.swapfs.swp,xvdb1.
>
> Is there a work around or setting we may be missing that will allows us
> to map FSs in the form of xvdaX using hvm?
How important is the numeric X? If you are happy to do without it you
could:
disk = [ 'phy:/dev/users/debian.img,xvda,w',
'phy:/dev/users/debian.swapfs.swp,xvdb,w' ]
And just update /etc/fstab to use the whole block device instead of the
'partition'. I think you should still be able to install a boot loader
on xvda but if not you could add a small extra disk just for the boot
loader and use xvdb and xvdc.
James
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-users
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |