Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[SOLVED]Problem getting a VM to run in 6.0beta3

Featured Replies

So I am banging my head against the wall here.

My goal here is to have another VM running as a PV guest.

 

Ive created a config and a img to use as a drive but when I run "xl create arch.cfg"

This is the error I am getting.

 

libxl: error: libxl.c:87:libxl_ctx_alloc: Is xenstore daemon running?
failed to stat /var/run/xenstored.pid: No such file or directory
cannot init xl context

 

Is there any startup scripts or something that I am missing? I have no clue what to do.

Are you booting into Xen/unRAID selection (not the default) in the boot menu of unRAID?

  • Author

Nope, there is no open for that when I boot.

You need to redo your upgrade to 6.0  Chances are you missed copying at least sysconfig

Make sure you set up the unRAID flash drive properly; it's a little different than previous versions. The is now a separate syslinux folder where the syslinux.cfg file resides. This file is used to create the boot menu. Does that help?

  • Author

Yes now just running into (not enough ram issues)

I suppose I'll have to adjust the cfg file.

  • Author

Thanks for all the help :D

  • Author

Now is the error I'm getting trying to parse my cfg

name = "archVM"
bootloader = "pygrub"
kernel = "/mnt/arch/boot/x86_64/vmlinuz"
ramdisk = "/mnt/arch/boot/x86_64/archiso.img"
extra = "archisobasedir=arch archisolabel=ARCH_201402"
memory = '2048'
vcpus = '2'
disk = [
        'phy:/mnt/user/vms/ArchVM/arch.img,xvda,w',
        'file:/mnt/tmp,xvdb,w'
]
vif = [ 'mac=00:16:3e:xx:xx:xx,bridge=br0' ]

 

Is this

Parsing config from arch.cfg
': lexical errorig parsing error near `
': lexical errorig parsing error near `
': lexical errorig parsing error near `
': lexical errorig parsing error near `
': lexical errorig parsing error near `
': lexical errorig parsing error near `
': lexical errorig parsing error near `
': lexical errorig parsing error near `
': lexical errorig parsing error near `
': lexical errorfig parsing error near `
': lexical errorfig parsing error near `
Failed to parse config: Invalid argument

 

I'm not quite sure what I did wrong?

I'm not quite sure what I did wrong?

 

Dude... Where in the heck did you come up with that cfg file?

 

name = "archVM"
bootloader = "pygrub"
memory = 1024
vcpus = 1
disk = [
        'file:/mnt/user/VMs/ArchVM/arch.img,xvda,w'
        ]
vif = [ 'mac=00:16:3e:12:34:56,bridge=xenbr0' ]
bootloader = "pygrub"

 

In the above example...

 

1. Change the path location to match where your arch.img is located.

 

2. Change the bridge name to match whatever you put in Network Settings in unRAID.

 

3. Optional - Change the MAC Address but leave the following: 00:16:3e:XX:XX:XX and make XX random letters (lowercase) or numbers.

  • Author

It was a modified one from the FAQ stickied to the top of this forum.

It was a modified one from the FAQ stickied to the top of this forum.

 

Hop on the bus, use the cfg I posted above and make the necessary changes for your system.

  • Author

Heres the config

name = "archVM"
bootloader = "pygrub"
memory = 1024
vcpus = 1
disk = [ 
	'file:/mnt/user/vms/ArchVM/arch.img,xvda,w'
	]
vif = [ 'mac=00:16:3e:ff:ff:ff,bridge=xenbr0' ]
bootloader = "pygrub"

 

Heres the output

 

root@Dirge:/mnt/user/vms/ArchVM# xl create arch.cfg
Parsing config from arch.cfg
': lexical errorig parsing error near `
': lexical errorig parsing error near `
': lexical errorig parsing error near `
': lexical errorig parsing error near `
': lexical errorig parsing error near `
': lexical errorig parsing error near `
': lexical errorig parsing error near `
': lexical errorig parsing error near `
Failed to parse config: Invalid argument

You have dos character in end of some lines , remove these, then it's ok

 

 

Sent from my iPhone using Tapatalk 2

  • Author

I guess there was... well it can read the config now.

Heres the new error.

 

libxl: error: libxl_bootloader.c:628:bootloader_finished: bootloader failed - consult logfile /var/log/xen/bootloader.5.log
libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: bootloader [2956] exited with error status 1
libxl: error: libxl_create.c:900:domcreate_rebuild_done: cannot (re-)build domain: -3

 

Log files says

Traceback (most recent call last):
  File "/usr/lib64/xen/bin/pygrub", line 877, in <module>
    raise RuntimeError, "Unable to find partition containing kernel"
RuntimeError: Unable to find partition containing kernel

 

So I am guessing its because the img file is empty and it couldn't load the kernel.

I'm going to give up on this tonight and perhaps tackle it tomorrow.

 

Thank you everyone for your help.

This looks to be the right road, I just wish it was more userfriendly.

So I am guessing its because the img file is empty and it couldn't load the kernel.

I'm going to give up on this tonight and perhaps tackle it tomorrow.

 

Did you make this image or are you using the one that Ironic made?

  • Author

I made this image so I could start clean from scratch. That was why I had the ISO etc in the config file before.

  • Author

I forgot about ironicbadger's image. I'll just use that.

 

Thanks again for everyone's help.

I forgot about ironicbadger's image. I'll just use that.

 

1. You either didn't partition the imagine when you booted in the ISO and went through the install.

 

2. You didn't install grub and create the grub.cfg file.

 

  • Author

1)I didn't get ANYTHING to boot so how could I partition it.

2) See 1)

 

But thank you for your help.

1)I didn't get ANYTHING to boot so how could I partition it.

2) See 1)

 

Ahhhhhh.... My bad, now it makes sense.

 

1. Fix any Dos Characters in your cfg file.

 

2. Your cfg file needs some help.

 

name = "archVM"

bootloader = "pygrub" <--- Comment this out. You do not use this until after you created the VM and gone through the install.

kernel = "/mnt/arch/boot/x86_64/vmlinuz" <--- You need to mount the Arch Linux ISO in /mnt/arch

ramdisk = "/mnt/arch/boot/x86_64/archiso.img" <--- See above

extra = "archisobasedir=arch archisolabel=ARCH_201402"

memory = '2048'

vcpus = '2'

disk = [

        'phy:/mnt/user/vms/ArchVM/arch.img,xvda,w', <--- It should be file: not phy:

        'file:/mnt/tmp,xvdb,w' <--- You need to put where the iso is 'file:/mnt/user/ISOs/archlinux-2014.02.01-dual.iso.xvdc,r'

]

vif = [ 'mac=00:16:3e:xx:xx:xx,bridge=br0' ] <--- Bridge name correct? You want indivdual MAC Addesses so changes the XX's to random number or letters.

 

After you completed the install you comment out...

 

#kernel =

#ramdisk =

#extra =

 

and uncomment...

 

bootloader = "pygrub"

 

xl create arch.cfg -c will start you in the VM console.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.