[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

config parsing error in disk specification: unknown value for format: near `hdb' in `/usr/share/ovmf/OVMF.fd,hdb,w'



Hello.

I'm a new xen user. I'm learning how works the xen hypervisor that I have installed on ubuntu 20.04 with the command : apt install xen-hypervisor. I want to boot the phisycal installation of windows 10 x64 bit that I have on /dev/sdb,which belong to these partitions :


root@ziomario-I9:/etc/xen# fdisk /dev/sdb -l

Disk /dev/sdb: 465,78 GiB, 500107862016 bytes, 976773168 sectors

Disk model: Samsung SSD 860

Units: sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disklabel type: gpt


Dispositivo Start Fine Settori Size Tipo

/dev/sdb1 34 262177 262144 128M Microsoft reserved

/dev/sdb2 264192 1286143 1021952 499M Windows recovery environment

/dev/sdb3 1286144 1488895 202752 99M EFI System

/dev/sdb4 1488896 975591423 974102528 464,5G Microsoft basic data

/dev/sdb5 975591424 976773119 1181696 577M Windows recovery environment


I'm reading here : https://wiki.xenproject.org/wiki/OVMF


it says that if I want to enable EFI / UEFI for virtual machines I should add this parameter bios='ovmf' and it also says :


# This is a disk image with EFI guest installed, you can also use live CD if you prefer.

disk = [ '/data/s0-efi.qcow2,qcow2,hda,w' ]


So,according with my situation,I created a cfg file like this :


builder = 'hvm'

bios='ovmf'

vif = [ 'type=ioemu, bridge=xenbr0' ]

memory = 8192

name = "windows-10" # domain prefix name

disk = [ '/usr/share/ovmf/OVMF.fd,hdb,w' ]

boot = "c"

vcpus = 6 # number of cpu's to assignsdl=1

stdvga = 0

serial = 'pty'

usbdevice = 'tablet' # Required for USB mouse

_on_poweroff_ = 'destroy'

on_reboot   = 'destroy'

on_crash    = 'preserve'

device_model_args_hvm = [

# Debug OVMF

'-chardev', 'file,id=debugcon,path=/etc/xen/ovmf.log,',

'-device', 'isa-debugcon,iobase=0x402,chardev=debugcon',

]



but it gives the following error :


xenwin.cfg: config parsing error in disk specification: unknown value for format: near \hdb' in \/usr/share/ovmf/OVMF.fd,hdb,w'\``


do u know where is the error ?

--
Mario.

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.