Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xen - cannot create domain.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
sidor
n00b
n00b


Joined: 27 Jun 2012
Posts: 22

PostPosted: Sun Jul 01, 2012 12:23 am    Post subject: xen - cannot create domain. Reply with quote

Hi,

I am using xen 4.1 and kernel 3.3.8 and I try to create domU:
Code:
sidor@manticore ~ $ cat xenconfigs/win7.xen
builder='/usr/lib/xen/boot/hvmloader'
builder='hvm'

vcpus='4'
cpus='4-7'
memory='4096'
on_poweroff='destroy'
on_reboot='restart'
on_crash='destroy'

disk=['phy:/dev/sda,ioemu:hda,w']
cdrom ='/dev/hda'
vif=['bridge=xenbr1,type=ioemu']

boot='c'
acpi=1
apic=1
viridian=1
stdvga=0

vnc=1
vnclisten='0.0.0.0'
vncdisplay=0
vncunused=1
vncpasswd=""
sdl=0

pci=['00:14.0','00:1a.0','00:1b.0','00:1d.0','01:00.0']

sidor@manticore ~ $ sudo xl create xenconfigs/win7.xen
Parsing config file xenconfigs/win7.xen
libxl: error: libxl_create.c:317:libxl__domain_make domain creation fail
cannot make domain: -3
libxl: error: libxl.c:711:libxl_domain_destroy non-existant domain -1


Any ideas?

Thanks,
Szymon
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1576
Location: US

PostPosted: Sun Jul 01, 2012 1:44 am    Post subject: Reply with quote

sidor,

I see you're plugging right along here :D

Every hvm domu requires a name so after builder='hvm' add name = "whateveryouwant"

I'm a little confused by this:
disk=['phy:/dev/sda,ioemu:hda,w']
cdrom ='/dev/hda'


The error mentions win7 - if is this an already installed win7 disk=['phy:/dev/sda,xvda,w'] and drop boot='c'
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
sidor
n00b
n00b


Joined: 27 Jun 2012
Posts: 22

PostPosted: Sun Jul 01, 2012 2:50 am    Post subject: Reply with quote

BillWho,

haha, you really do help me a lot, thanks! I promise to try to pass on your knowledge once I get this %$#@ to run :)

I tried to take your advice. For clarity now my config is:
Code:
sidor@manticore ~ $ cat xenconfigs/win7.xen
builder='/usr/lib/xen/boot/hvmloader'
builder='hvm'

name='win'

vcpus='4'
cpus='4-7'
memory='4096'
on_poweroff='destroy'
on_reboot='restart'
on_crash='destroy'

disk=['phy:/dev/sda,xvda,w']

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


acpi=1
apic=1
viridian=1
stdvga=0

vnc=1
vnclisten='0.0.0.0'
vncdisplay=0
vncunused=1
vncpasswd=""
sdl=0

pci=['00:14.0','00:1a.0','00:1b.0','00:1d.0','01:00.0']


But I still keep getting the same error :(
The thing about harddrive, I was confused as well, but I took if from code of somebody who claimed he mad it work :)
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1576
Location: US

PostPosted: Sun Jul 01, 2012 4:13 am    Post subject: Reply with quote

sidor,

Too bad you can't find the poster for this error http://pastebin.com/9f280hAc. It's the exact same error for what appears to be a bsd installation.

It's been quite a while since I did anything with it. I have a mirror backup of it and was considering restoring it, but since I saw your other post I'm considering reinstalling from those instructions.

If I knew anything I would certainly tell you, but I'm at a loss here with that error :cry:

It's going to be a lot of trial and error - and frustration. What you might want to try is a xen IRC - I think there's one on freenode :D

One last thing to try is comment everything past the disk setup to try and eliminate the problem.

So just try this - I used xm create -c -n /home/bill/xenloader - I think the c did a syntax check

Code:
builder='/usr/lib/xen/boot/hvmloader'
builder='hvm'
name='win'
vcpus='4'
cpus='4-7'
memory='4096'
on_poweroff='destroy'
on_reboot='restart'
on_crash='destroy'
disk=[ 'phy:/dev/sda,xvda,w' ]

_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum