Install failing on VM

863 views
Skip to first unread message

Chinmay Deshpande

unread,
Jun 15, 2016, 3:12:07 PM6/15/16
to opennetworklinux
I'm trying to install ONL on a virtual machine ( VirtualBox, latest-2.0-AMD64.installer) and it fails with this error:
Detected platform: x86-64-kvm-x86-64-r0
Error: Could not stat device /dev/vda - No such file or directory.

I've attached the console log from ONIE. Any help would be appreciated!
onie-log.txt

Steven Noble

unread,
Jun 15, 2016, 3:35:15 PM6/15/16
to Chinmay Deshpande, opennetworklinux
Hi Chinmay,

Can you tell me how you setup the vm initially and installed ONIE?  What type of disk did you use, etc.

June 15, 2016 at 12:12 PM
I'm trying to install ONL on a virtual machine ( VirtualBox, latest-2.0-AMD64.installer) and it fails with this error:

I've attached the console log from ONIE. Any help would be appreciated!
--
You received this message because you are subscribed to the Google Groups "opennetworklinux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opennetworklin...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Chinmay Deshpande

unread,
Jun 15, 2016, 4:01:39 PM6/15/16
to opennetworklinux, chinma...@gmail.com
Hi Steve,


I booted that onto my VMs (4 GB RAM, 2 CPUs), one with VDI and one with QEMU (both 20 GB, dynamically allocated). I chose the embed option. I hadn't yet attached a serial port. It kept rebooting so I assumed it installed correctly, because the ONIE grub came up when I started the VMs without the recover iso.

The ONL image resides on a HTTP server on my host (Windows for unavoidable reasons) and I used the install_url command.

Jeffrey Townsend

unread,
Jun 15, 2016, 4:40:42 PM6/15/16
to Chinmay Deshpande, opennetworklinux
Steve -- this is fixed in master #136. 

J

Steven Noble

unread,
Jun 15, 2016, 5:06:13 PM6/15/16
to Jeffrey Townsend, Chinmay Deshpande, opennetworklinux
Thanks Jeff!

Chinmay: I will post the image as soon as it finishes building and going through the automated tests, should be about 2 hours.

June 15, 2016 at 1:40 PM
Steve -- this is fixed in master #136. 

J


--
You received this message because you are subscribed to the Google Groups "opennetworklinux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opennetworklin...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
June 15, 2016 at 1:01 PM

Chinmay Deshpande

unread,
Jun 15, 2016, 5:08:50 PM6/15/16
to opennetworklinux, jeffrey....@bigswitch.com, chinma...@gmail.com
Thanks Steve and Jeff!

Steven Noble

unread,
Jun 15, 2016, 6:40:52 PM6/15/16
to Chinmay Deshpande, opennetworklinux, jeffrey....@bigswitch.com
Hi Chinmay,

The new images are up and the amd64 one is linked as http://opennetlinux.org/binaries/latest-2.0-AMD64.installer

Please let us know if you have any other issues.

Thanks!

June 15, 2016 at 2:08 PM

Steven Noble

unread,
Jun 15, 2016, 6:57:43 PM6/15/16
to Chinmay Deshpande, opennetworklinux, jeffrey....@bigswitch.com
FYI there was a bug in my update script, you might need to pull the image again if you already pulled it.

June 15, 2016 at 3:40 PM

Chinmay Deshpande

unread,
Jun 15, 2016, 7:08:28 PM6/15/16
to opennetworklinux, chinma...@gmail.com, jeffrey....@bigswitch.com
Yup, the new one worked, thanks!

(PS- on a QEMU disk it dropped into a Python debugger, I didn't save the logs though. It worked on a VDI)

Frederic Lassel

unread,
Oct 16, 2017, 8:11:53 AM10/16/17
to opennetworklinux
Hi,


With the onie-recovery-x86_64-kvm.iso I've created a virutal machine in Proxmox (kvm based hypervisor https://www.proxmox.com/) but I can't install ONL whether trough the prebuild amd64 images (https://opennetlinux.org/binaries/latest/ONL-2.0.0-ONL-OS-DEB8-2017-07-18.1642-40fc82b-AMD64-INSTALLED-INSTALLER) nor through my own onl-kvm build (https://opennetlinux.org/docs/build).

I've also tried varoius things like converting the ONL\builds\kvm\i386\onl\onl-i386.img to a raw disk image and boot with the loader-i386 to get ONL running ... but nothing.

Could anyone give me some hints how to install ONL in a vm with onie?

Frederic Lassel

unread,
Oct 16, 2017, 11:07:52 AM10/16/17
to opennetworklinux

That’s the serial output from the shell when I’m installing the prebuilt amd64 version from my webserver.

 

Thanks,

Frederic

onie_log.txt

Jeffrey Townsend

unread,
Oct 16, 2017, 11:46:47 AM10/16/17
to Frederic Lassel, opennetworklinux
Frederic, 

After booting to ONIE in your VM can you send me the contents of /etc/machine.conf?

Jeff

To unsubscribe from this group and stop receiving emails from it, send an email to opennetworklinux+unsubscribe@googlegroups.com.
Message has been deleted

Frederic Lassel

unread,
Oct 16, 2017, 12:47:22 PM10/16/17
to opennetworklinux
That's the content of the file

ONIE:/ # cat /etc/machine.conf
# /etc/machine.conf for onie

#  Copyright (C) 2017 Curt Brune <cu...@cumulusnetworks.com>
#
#  SPDX-License-Identifier:     GPL-2.0

# Source build-time machine configuration
. /etc/machine-build.conf

# Source run-time machine configuration if available
[ -r /etc/machine-live.conf ] && . /etc/machine-live.conf

# Use onie_machine if set, otherwise use build_machine
onie_machine=${onie_machine:-$onie_build_machine}

onie_platform="${onie_arch}-${onie_machine}-r${onie_machine_rev}"

I uploaded my ONIE iso to google drive. It may be helpful.

Thanks for helping,
Frederic

Luis Batista

unread,
Oct 17, 2017, 6:23:16 AM10/17/17
to Frederic Lassel, opennetworklinux
Hi Frederic.

I had the same issue installing ONL on kvm_x86_64_onie here. In my case the only difference is that I am not using Proxmox.
During installation I was constantly getting the error "ImportError: No module named (...)".

It seems to be an issue with the python scrip from the installer that parses the machine.conf file. But I haven't analyzed deeper though.

I was able to pass beyond this error after editing the /etc/machine.conf file inside ONIE:
cd /etc
source machine.conf
echo "onie_machine=$onie_machine" >> machine.conf
echo "onie_platform=$onie_platform" >> machine.conf
cat machine-build.conf >> machine.conf

After that, I manually removed all comments, imports and blank lines from the file to avoid a different error:
"ValueError: invalid line in /etc/machine.conf: # /etc/machine.conf for onie"

Check the working machine.conf file attached.


Now I am getting errors related with the available space for the ONL partitions (output.txt file attached), which I will continue to work on later.

I actually tried to install ONL on kvm_x86_64 because I was having an extremely similar problem porting ONL to a LS1043 board.
I recently wrote to the mailing list about it: "Failing to install ONL on a ARM64-NXP-LS1043"
Now that the issue seem to pinned down to the python parser, I will try to use the same workaround in the ARM board...

Hope it helps.

Cheers.

Luis Batista


To unsubscribe from this group and stop receiving emails from it, send an email to opennetworklinux+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Luis Felipe Wolf Batista
machine.conf.txt
output.txt

Jeffrey Townsend

unread,
Oct 18, 2017, 1:24:39 PM10/18/17
to Luis Batista, Frederic Lassel, opennetworklinux
All, 

The issue here is that the ONL installer has not yet been updated to use the new canonical platform identification mechanism implemented in the ONIE master branch. As a result of the subsequent changes to the format of machine.conf it cannot determine the platform. 

The latest release of ONIE (2017.08.01) does not yet use this mechanism. 

For the KVM installation problem I suggest you use the 2017.08.01 release build instead of master (which still uses an ONL compatible version of machine.conf). 

We will work on fixing the installer. 

J


Frederic Lassel

unread,
Oct 19, 2017, 2:57:37 AM10/19/17
to opennetworklinux
Hi,

I've tested the release of 2017.08.01.
The machine.conf seems to work with this version but the python error persists, see the attached log.


regards
--
Luis Felipe Wolf Batista

--
You received this message because you are subscribed to the Google Groups "opennetworklinux" group.
onie_log_2017-08-01.txt

Frederic Lassel

unread,
Oct 19, 2017, 7:46:11 AM10/19/17
to opennetworklinux
Make sure you have enough memory otherwise the installer will fail due lack of space on tmpfs. Try with 1GB or more.

Now it's ONL is running on my VM.

What to do:
1. use at least 1GB RAM for your VM
2. boot ONI in embedded mode, after that it should be installed on the disk
3. boot ONI in install mode
4. modify the machine.conf or use the kvm recovery iso release 2017-08-01 to be sure
5. onie-discovery-stop
7. boot Open Network Linux

Thank you guys for the support.
Frederic

Luis Felipe Wolf Batista
Message has been deleted

Ryan Yang

unread,
Oct 25, 2017, 1:35:44 AM10/25/17
to opennetworklinux
Hello All,

I tried to follow instruction to modify machine.conf and the installation did start successfully. However, the installation still failed during installation and then rebooted. I tried to check the log and only found one error in which I am not sure if that is the root cause. Could you help with it? Thanks.

restoring ONL-CONFIG archive /tmp/sfx-fZbnGP/onl-config-nJWHYz.tar.gz to /dev/vda4
+ /bin/mkdir /tmp/sfx-fZbnGP/mount-AO36nt.d
+ mount -v /dev/vda4 /tmp/sfx-fZbnGP/mount-AO36nt.d
+ tar -zxf /tmp/sfx-fZbnGP/onl-config-nJWHYz.tar.gz -C /tmp/sfx-fZbnGP/mount-AO36nt.d
+ umount -v /tmp/sfx-fZbnGP/mount-AO36nt.d
+ /bin/rmdir /tmp/sfx-fZbnGP/mount-AO36nt.d
+ /bin/rm /tmp/sfx-fZbnGP/onl-config-nJWHYz.tar.gz
ONL-IMAGES: start sector 1312768, end sector 3409919, max 2097152
invalid partition ONL-IMAGES [1GiB] (too big)
cleaning up chroot in /tmp/sfx-fZbnGP/chroot-sX6b4o.d
+ /bin/rm -fr /tmp/sfx-fZbnGP/chroot-sX6b4o.d
Install failed.
Oct 25 05:04:21 onie local0.info onie: Starting: klogd...
Oct 25 05:04:21 onie local0.info onie:  done.
Oct 25 05:04:21 onie local0.info onie: Starting: dropbear ssh daemon...
Oct 25 05:04:21 onie local0.info onie:  done.
Oct 25 05:04:21 onie local0.info onie: Starting: telnetd...
Oct 25 05:04:21 onie local0.info onie:  done.
Oct 25 05:04:21 onie local0.info onie: Starting: discover...
Oct 25 05:04:21 onie local0.info onie:  done.
Oct 25 05:04:21 onie local0.info onie: Info: eth0:  Checking link... 
Oct 25 05:04:21 onie local0.info onie: up.
Oct 25 05:04:21 onie local0.info onie: Info: Trying DHCPv4 on interface: eth0
Oct 25 05:04:21 onie local0.info onie: ONIE: Using DHCPv4 addr: eth0: 192.168.1.156 / 255.255.255.0

Ryan

Steven Noble

unread,
Oct 25, 2017, 9:26:40 AM10/25/17
to Ryan Yang, opennetworklinux
Hi Ryan,

I see the error, we will look into it. Thank you for bringing it to our attention.

How large is the virtual disk you are installing on to?

October 24, 2017 at 10:35 PM
October 19, 2017 at 4:46 AM
Make sure you have enough memory otherwise the installer will fail due lack of space on tmpfs. Try with 1GB or more.

Now it's ONL is running on my VM.

What to do:
1. use at least 1GB RAM for your VM
2. boot ONI in embedded mode, after that it should be installed on the disk
3. boot ONI in install mode
4. modify the machine.conf or use the kvm recovery iso release 2017-08-01 to be sure
5. onie-discovery-stop
7. boot Open Network Linux

Thank you guys for the support.
Frederic

Am Dienstag, 17. Oktober 2017 12:23:16 UTC+2 schrieb Luis Batista:
--
You received this message because you are subscribed to the Google Groups "opennetworklinux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opennetworklin...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
October 17, 2017 at 3:22 AM
Hi Frederic.

I had the same issue installing ONL on kvm_x86_64_onie here. In my case the only difference is that I am not using Proxmox.
During installation I was constantly getting the error "ImportError: No module named (...)".

It seems to be an issue with the python scrip from the installer that parses the machine.conf file. But I haven't analyzed deeper though.

I was able to pass beyond this error after editing the /etc/machine.conf file inside ONIE:
cd /etc
source machine.conf
echo "onie_machine=$onie_machine" >> machine.conf
echo "onie_platform=$onie_platform" >> machine.conf
cat machine-build.conf >> machine.conf

After that, I manually removed all comments, imports and blank lines from the file to avoid a different error:
"ValueError: invalid line in /etc/machine.conf: # /etc/machine.conf for onie"

Check the working machine.conf file attached.


Now I am getting errors related with the available space for the ONL partitions (output.txt file attached), which I will continue to work on later.

I actually tried to install ONL on kvm_x86_64 because I was having an extremely similar problem porting ONL to a LS1043 board.
I recently wrote to the mailing list about it: "Failing to install ONL on a ARM64-NXP-LS1043"
Now that the issue seem to pinned down to the python parser, I will try to use the same workaround in the ARM board...

Hope it helps.

Cheers.

Luis Batista

--
Luis Felipe Wolf Batista
--
You received this message because you are subscribed to the Google Groups "opennetworklinux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opennetworklin...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
October 16, 2017 at 9:47 AM
That's the content of the file

ONIE:/ # cat /etc/machine.conf
# /etc/machine.conf for onie

#  Copyright (C) 2017 Curt Brune <cu...@cumulusnetworks.com>
#
#  SPDX-License-Identifier:     GPL-2.0

# Source build-time machine configuration
. /etc/machine-build.conf

# Source run-time machine configuration if available
[ -r /etc/machine-live.conf ] && . /etc/machine-live.conf

# Use onie_machine if set, otherwise use build_machine
onie_machine=${onie_machine:-$onie_build_machine}

onie_platform="${onie_arch}-${onie_machine}-r${onie_machine_rev}"

I uploaded my ONIE iso to google drive. It may be helpful.

Thanks for helping,
Frederic

Am Montag, 16. Oktober 2017 17:46:47 UTC+2 schrieb jeffrey.townsend:
--
You received this message because you are subscribed to the Google Groups "opennetworklinux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opennetworklin...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
October 16, 2017 at 8:46 AM
Frederic, 

After booting to ONIE in your VM can you send me the contents of /etc/machine.conf?

Jeff


Ryan Yang

unread,
Oct 25, 2017, 12:31:09 PM10/25/17
to Steven Noble, opennetworklinux
Hello Steven,

Thanks for getting back. I created the 1G size with command 'qemu-img create -f qcow2 onie-x86-demo.img 1G'

devserver:~$ qemu-img info onie-x86-demo.img
image: onie-x86-demo.img
file format: qcow2
virtual size: 1.0G (1073741824 bytes)
disk size: 35M
cluster_size: 65536
Format specific information:
    compat: 1.1
    lazy refcounts: false
    refcount bits: 16
    corrupt: false

Ryan

To unsubscribe from this group and stop receiving emails from it, send an email to opennetworklinux+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
October 19, 2017 at 4:46 AM
Make sure you have enough memory otherwise the installer will fail due lack of space on tmpfs. Try with 1GB or more.

Now it's ONL is running on my VM.

What to do:
1. use at least 1GB RAM for your VM
2. boot ONI in embedded mode, after that it should be installed on the disk
3. boot ONI in install mode
4. modify the machine.conf or use the kvm recovery iso release 2017-08-01 to be sure
5. onie-discovery-stop
7. boot Open Network Linux

Thank you guys for the support.
Frederic

Am Dienstag, 17. Oktober 2017 12:23:16 UTC+2 schrieb Luis Batista:
--
You received this message because you are subscribed to the Google Groups "opennetworklinux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opennetworklinux+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to opennetworklinux+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
October 16, 2017 at 9:47 AM
That's the content of the file

ONIE:/ # cat /etc/machine.conf
# /etc/machine.conf for onie

#  Copyright (C) 2017 Curt Brune <cu...@cumulusnetworks.com>
#
#  SPDX-License-Identifier:     GPL-2.0

# Source build-time machine configuration
. /etc/machine-build.conf

# Source run-time machine configuration if available
[ -r /etc/machine-live.conf ] && . /etc/machine-live.conf

# Use onie_machine if set, otherwise use build_machine
onie_machine=${onie_machine:-$onie_build_machine}

onie_platform="${onie_arch}-${onie_machine}-r${onie_machine_rev}"

I uploaded my ONIE iso to google drive. It may be helpful.

Thanks for helping,
Frederic

Am Montag, 16. Oktober 2017 17:46:47 UTC+2 schrieb jeffrey.townsend:
--
You received this message because you are subscribed to the Google Groups "opennetworklinux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opennetworklinux+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
October 16, 2017 at 8:46 AM
Frederic, 

After booting to ONIE in your VM can you send me the contents of /etc/machine.conf?

Jeff


--
You received this message because you are subscribed to the Google Groups "opennetworklinux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opennetworklinux+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "opennetworklinux" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/opennetworklinux/RhcRDHE-BT4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to opennetworklinux+unsubscribe@googlegroups.com.

Ryan Yang

unread,
Oct 30, 2017, 9:42:17 PM10/30/17
to Steven Noble, opennetworklinux
Hello Steven,

Just curious if we have any update for this issue, or is there any workaround to keep continuing the installation?

Sincerely,
Ryan

Steven Noble

unread,
Oct 31, 2017, 1:48:56 PM10/31/17
to Ryan Yang, opennetworklinux
Hi Ryan,

Thank you for your patience, I needed to get a kvm system setup from scratch to make sure that I could install without issues.

I just installed ONL with a 4G disk and it worked fine.  It did not work with a 1G disk.  In general we do not suggest running ONL on a box with less than 2G of disk.  The error you received seems incorrect so I will check with the team.

+ grub-install --boot-directory=/tmp/sfx-ldxlUN/tmp.wfSg63 /dev/vda
Installing for i386-pc platform.
Installation finished. No error reported.

root@localhost:~# df
Filesystem     1K-blocks   Used Available Use% Mounted on
/dev/vda6        2639656 430256   2055596  18% /
devtmpfs            1024      0      1024   0% /dev
/dev/vda5         999320 151944    778564  17% /mnt/onl/images
/dev/vda3         122835  22274     91387  20% /mnt/onl/boot
/dev/vda4         122835   1556    112105   2% /mnt/onl/config

root@localhost:~# cat /etc/onl/platform
x86-64-kvm-x86-64-r0

October 30, 2017 at 6:41 PM
Hello Steven,

Just curious if we have any update for this issue, or is there any workaround to keep continuing the installation?

Sincerely,
Ryan


October 25, 2017 at 9:30 AM
Hello Steven,

Thanks for getting back. I created the 1G size with command 'qemu-img create -f qcow2 onie-x86-demo.img 1G'

devserver:~$ qemu-img info onie-x86-demo.img
image: onie-x86-demo.img
file format: qcow2
virtual size: 1.0G (1073741824 bytes)
disk size: 35M
cluster_size: 65536
Format specific information:
    compat: 1.1
    lazy refcounts: false
    refcount bits: 16
    corrupt: false

Ryan


October 25, 2017 at 6:26 AM
To unsubscribe from this group and stop receiving emails from it, send an email to opennetworklin...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
October 19, 2017 at 4:46 AM
Make sure you have enough memory otherwise the installer will fail due lack of space on tmpfs. Try with 1GB or more.

Now it's ONL is running on my VM.

What to do:
1. use at least 1GB RAM for your VM
2. boot ONI in embedded mode, after that it should be installed on the disk
3. boot ONI in install mode
4. modify the machine.conf or use the kvm recovery iso release 2017-08-01 to be sure
5. onie-discovery-stop
7. boot Open Network Linux

Thank you guys for the support.
Frederic

Am Dienstag, 17. Oktober 2017 12:23:16 UTC+2 schrieb Luis Batista:
--
You received this message because you are subscribed to the Google Groups "opennetworklinux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opennetworklin...@googlegroups.com.

Ryan Yang

unread,
Nov 6, 2017, 4:28:07 AM11/6/17
to Steven Noble, opennetworklinux
Hello Steven,

Thank you very much. Yes, installing 4G space did make the installation successful. I really appreciate it.

Sincerely,
Ryan

To unsubscribe from this group and stop receiving emails from it, send an email to opennetworklinux+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
October 19, 2017 at 4:46 AM
Make sure you have enough memory otherwise the installer will fail due lack of space on tmpfs. Try with 1GB or more.

Now it's ONL is running on my VM.

What to do:
1. use at least 1GB RAM for your VM
2. boot ONI in embedded mode, after that it should be installed on the disk
3. boot ONI in install mode
4. modify the machine.conf or use the kvm recovery iso release 2017-08-01 to be sure
5. onie-discovery-stop
7. boot Open Network Linux

Thank you guys for the support.
Frederic

Am Dienstag, 17. Oktober 2017 12:23:16 UTC+2 schrieb Luis Batista:
--
You received this message because you are subscribed to the Google Groups "opennetworklinux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opennetworklinux+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages