Hi, guys. I''m trying to use physical disks as virtual disks in HVM domains. But I couldn''t. I''m using cs10508 of xen-unstable.hg. When I use disk = [ ''phy:sda5,ioemu:hda,w'' ] in conf file, creating HVM domain says, I need to use ''file'' modifier if I use ''ioemu''. So, I changed it to disk = [ ''phy:sda5,hda,w'' ]. But HVM window doesn''t pop up. Did you guys solve this problem? Can''t I use physical disk partitions for virtual disks? Thank you in advance. -- 장재완 드림 Jae-Wan Jang jwjang@camars.kaist.ac.kr +82-42-869-3559 http://camars.kaist.ac.kr/~jwjang _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Did you install OS into sda5? Could you mount /dev/sda5 in domain0? I can use physical partitions as virtual disks. There are two ways to use a physical partition as virtual disk. One way: Native and VMX share the same MBR on /dev/sda. And the guest root fs is a partition of domain0. You can mount /dev/sda5 directly in domain0. mount /dev/sda5 /mnt/ Another way: VMX has created its own MBR in /dev/sda5. To mount the guest root fs you have to add an offset. mount -o offset=32256 /dev/sda5 /mnt/ With the 1th way You should use disk = [ ''phy:sda,ioemu:hda,w'' ] And the grub on sda should have a grub entry for hvm. Thanks Yunfeng>-----Original Message----- >From: xen-users-bounces@lists.xensource.com >[mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Jae-Wan Jang >Sent: 2006年6月29日 17:49 >To: xen-users@lists.xensource.com >Subject: [Xen-users] Using physical disk in HVM > >Hi, guys. > >I''m trying to use physical disks as virtual disks in HVM domains. >But I couldn''t. > >I''m using cs10508 of xen-unstable.hg. > >When I use >disk = [ ''phy:sda5,ioemu:hda,w'' ] >in conf file, creating HVM domain says, I need to use ''file'' modifier if >I use ''ioemu''. >So, I changed it to >disk = [ ''phy:sda5,hda,w'' ]. > >But HVM window doesn''t pop up. > >Did you guys solve this problem? >Can''t I use physical disk partitions for virtual disks? > > >Thank you in advance. > >-- >장재완 드림 > >Jae-Wan Jang >jwjang@camars.kaist.ac.kr >+82-42-869-3559 >http://camars.kaist.ac.kr/~jwjang > > >_______________________________________________ >Xen-users mailing list >Xen-users@lists.xensource.com >http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> I''m trying to use physical disks as virtual disks in HVM domains. > But I couldn''t. > > I''m using cs10508 of xen-unstable.hg. > > When I use > disk = [ ''phy:sda5,ioemu:hda,w'' ] > in conf file, creating HVM domain says, I need to use ''file'' modifier if > I use ''ioemu''. > So, I changed it to > disk = [ ''phy:sda5,hda,w'' ].That won''t work because it''s the paravirtualised syntax, and you presumably aren''t running a Xen-aware driver in the guest.> But HVM window doesn''t pop up. > > Did you guys solve this problem? > Can''t I use physical disk partitions for virtual disks?Not used VT myself, but have you tried: disk = [ ''file:/dev/sda5,ioemu:hda,w'' ] After all, on unix everything is a file ;-) Cheers, Mark -- Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel! _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I use the following and it works fine in Windows (native, VTX enabled), I see the LVM that I'm passing as a raw hard disk, which I formatted and continue to use. builder='hvm' memory = '384' name = "win2k31" vcpus=1 pae=0 acpi=0 apic=0 cpus = "" vif = [ 'type=ioemu, bridge=xenbr0', 'type=ioemu, bridge=xenbr1' ] disk = [ 'file:/root/windisk/win2k31.img,ioemu:hda,w', 'phy:/dev/sda3,ioemu:hdb,w' ] on_poweroff = 'destroy' on_reboot = 'destroy' on_crash = 'destroy' device_model = '/usr/lib/xen/bin/qemu-dm' cdrom='/root/windisk/win2k31.iso' boot='c' sdl=1 vnc=0 vncviewer=0 stdvga=0 serial='pty' ne2000=0 -- On 6/29/06, Jae-Wan Jang <jwjang@camars.kaist.ac.kr> wrote:> > Hi, guys. > > I'm trying to use physical disks as virtual disks in HVM domains. > But I couldn't. > > I'm using cs10508 of xen-unstable.hg. > > When I use > disk = [ 'phy:sda5,ioemu:hda,w' ] > in conf file, creating HVM domain says, I need to use 'file' modifier if > I use 'ioemu'. > So, I changed it to > disk = [ 'phy:sda5,hda,w' ]. > > But HVM window doesn't pop up. > > Did you guys solve this problem? > Can't I use physical disk partitions for virtual disks? > > > Thank you in advance. > > -- > 장재완 드림 > > Jae-Wan Jang > jwjang@camars.kaist.ac.kr > +82-42-869-3559 > http://camars.kaist.ac.kr/~jwjang > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users