I know I said in the last post that I was saving NX-OS (Titanium) for another day, well, today is that day!
Finding a suitable VMDK file to use was the hardest part.. but in the end, I did. I copied it to the /tmp directory and tried the usual:
[email protected]:/tmp# ls N7K.vmdk [email protected]:/tmp# qemu-img convert -f vmdk -O qcow2 N7K.vmdk hda.qcow2 [email protected]:/tmp# mkdir /p /opt/unetlab/addons/qemu/titanium-7 [email protected]:/tmp# mv hda.qcow2 /opt/unetlab/addons/qemu/titanium-7/ [email protected]:/tmp# /opt/unetlab/wrappers/unl_wrapper -a fixpermissions [email protected]:/tmp# ls -l /opt/unetlab/addons/qemu/ total 16 drwxr-xr-x 2 root root 4096 Feb 19 14:26 asa-8.42 drwxr-xr-x 2 root root 4096 Feb 19 16:16 titanium-7 drwxr-xr-x 2 root root 4096 Feb 19 13:53 vios-adventerprisek9-m15.4-1.2.0-173 drwxr-xr-x 2 root root 4096 Feb 17 11:02 xrv-k9-5.2.2 [email protected]:/tmp#
We have the files loaded and they are visible in Unetlab:
Topology
From the documentation for CSR1000v it says to run:
# /usr/bin/qemu-system-x86_64 --enable-kvm -serial mon:stdio -nographic -boot order=c,once=d -smp 1 -m 3072 -usb -hda hda.qcow2 -cdrom csr1000v-universalk9.03.13.00.S.154-3.S-ext.iso
However, this is not working for me:
[email protected]:/opt/unetlab/addons/qemu/titanium-7# /usr/bin/qemu-system-x86_64 --enable-kvm -serial mon:stdio -nographic -boot order=c,once=d -smp 1 -m 3072 -usb -hda hda.qcow2 -cdrom nexus.iso Could not access KVM kernel module: No such file or directory failed to initialize KVM: No such file or directory [email protected]:/opt/unetlab/addons/qemu/titanium-7#
Virtualization issues
This link would indicate that the module is not installed. I get the same when trying in VirtualBox. I did some googling and tried everything I can, turns out that my bargain ESXi box is missing one vital piece:
So I imported it into VMWare Fusion.
Now the message that the necessary bits aren’t working has gone.
If you are having a similar issue then this is the screen that you don’t want:
This is what you do want:
I can check that Qemu will be happy by doing this:
More importantly, the NX-OS routers fire up:
Testing NX-OS
NXOS1# sh ver Cisco Nexus Operating System (NX-OS) Software TAC support: http://www.cisco.com/tac Documents: http://www.cisco.com/en/US/products/ps9372/tsd_products_support_serie s_home.html Copyright (c) 2002-2014, Cisco Systems, Inc. All rights reserved. The copyrights to certain works contained herein are owned by other third parties and are used and distributed under license. Some parts of this software are covered under the GNU Public License. A copy of the license is available at http://www.gnu.org/licenses/gpl.html. Titanium is a demo version of the Nexus Operating System Software loader: version N/A kickstart: version 7.0(1) [build 7.0(1)ZD(0.216)] system: version 7.0(1) [build 7.0(1)ZD(0.216)] kickstart image file is: bootflash:///titanium-d1-kickstart.7.0.1.ZD.0.216.bin kickstart compile time: 6/13/2014 20:00:00 [06/14/2014 05:45:18] system image file is: bootflash:///titanium-d1.7.0.1.ZD.0.216.bin system compile time: 6/13/2014 20:00:00 [06/14/2014 09:32:30] Hardware cisco Nexus7000 C7018 (18 Slot) Chassis ("Unknown Module") Unknown CPU with 2042092 kB of memory. Processor Board ID TM00010000B Device name: NXOS1 bootflash: 0 kB Kernel uptime is 0 day(s), 1 hour(s), 7 minute(s), 29 second(s) plugin Core Plugin, Ethernet Plugin NXOS1# NXOS1# sh cdp neigh Capability Codes: R - Router, T - Trans-Bridge, B - Source-Route-Bridge S - Switch, H - Host, I - IGMP, r - Repeater, V - VoIP-Phone, D - Remotely-Managed-Device, s - Supports-STP-Dispute Device-ID Local Intrfce Hldtme Capability Platform Port ID NXOS2(TB00020000B) Eth2/1 141 R S s N7K-C7018 Eth2/1 NXOS1# NXOS2# sh cdp neigh Capability Codes: R - Router, T - Trans-Bridge, B - Source-Route-Bridge S - Switch, H - Host, I - IGMP, r - Repeater, V - VoIP-Phone, D - Remotely-Managed-Device, s - Supports-STP-Dispute Device-ID Local Intrfce Hldtme Capability Platform Port ID NXOS1(TB00010000B) Eth2/1 175 R S s N7K-C7018 Eth2/1 NXOS2#
There we have it… NX-OS (Titanium) running inside of Unetlab. So, if your virtualization platform supports a KVM guest, and you don’t see “Warning: neither Intel VT-x or AMD-V found”, then you should be OK.
Hi Stuart,
Thanks for this Titanium Tutorial. I couldn't get this up. If I am not wrong, are you able to run this setup "only" in the fusion? if not how do you run in windows pc and vmware workstation.
Thanks
David
Hi David
It also works on VMWare Workstation – Andrea has the docs on his website:
http://www.unetlab.com/documentation/
Cheers
Stuart
More preciously, I am confusing how to get the console access after create the topology?
thanks
David
Hi Stuart,
Can you make me clear on this;
[email protected]:/opt/unetlab/addons/qemu/titanium-7# /usr/bin/qemu-system-x86_64 –enable-kvm -serial mon:stdio -nographic -boot order=c,once=d -smp 1 -m 3072 -usb -hda hda.qcow2 -cdrom nexus.iso
where the nexus.iso is coming from?? does it come with the Titanium image you are using?
Thanks
David
Hey David,
It was a shot in the dark, I was working from the docs on the unetlab site, so was guessing at some commands… http://www.unetlab.com/2014/11/adding-cisco-cloud-service-router-csr1000v-images/
how can i get telnet to work on titanium-7? i have it setup on unetlab and connected but no cli. the router starts well but just stuck
is there something special i need to configure to have telnet access?
Hi.
Edit vmx file VM UnetLab
[[email protected]:~] vi /vmfs/volumes/raid-10/UNL/UNL.vmx
vhv.enable = "true"
or via WinSCP press f4 and edit *.vmx
vhv.enable = "true"
It is work.
Hi Stuart,
Where did you get nexus.iso or you just rename csr1000v and enter this command in you UNL-VM?
/usr/bin/qemu-system-x86_64 –enable-kvm -serial mon:stdio -nographic -boot order=c,once=d -smp 1 -m 3072 -usb -hda hda.qcow2 -cdrom nexus.iso
Thanks
Downloaded the Titanium emulator – thats the NX-OS
And thats titanium has nexus.iso?
its the iso download for Titanium but renamed to nexus.iso
Could you share this iso?
No, you'll need to google it.
Hi Stuart,
I am having issues using the new NXOS image, I was able to import and start device but afterwards I get a blank telnet session [Have tried a million different things but no luck]. The NXOS image boots properly in vm workstation with telnet port 7000 instead 9001 because it's an updated nxos image.
FYI – vhv.enable = "true" is already setup for me.
any help would be great.
NX-OS can take quite a while to load up, how long are you waiting before trying to access it? Start it up and go and grab a coffee! What version are you running?
Hi Stuart,
I know this is an older post, but still seems like the freshest on the topic. I'm running the latest UNL 0.9.0-96 and have tried your process above – thanks for this. My problem is that when I try to add the new N7K to my labs, the new image does not appear as an option. Some background; my titanium image was running fine on VMWare workstation; I tied converting this from qemu-img, but without success. I the used Vmware converter to convert the image using "other" option in the converter tool – this generated a new ".vmdk" image that I can succefully convert using qemu-img; I now have a "hda.qcow2" image. I moved this to /opt/unling/addons/qemu/N7K directory and ran the permissions change, but I still don't see the image as an available option int my UNL lab edit view when adding nodes. FYI, my add node options list "Cisco NX-OSv (Titanium)", but when selected, my new image is not available. By the way, the "Cisco NX-OSv (Titanium)" was default option right after the install of UNL. Sure appreciate if you can help me get past this problem so I can see if the new image will boot. Thank you!
you need to name the folder titanium-7k, not N7K. SSH onto your VM and run:
cat /opt/unetlab/html/includes/init.php
You'll see a long list of how things need to be named. NX-OS needs to have the prefix titanium.
hello stuart
I have the same issue like this ''Hi Stuart,
I am having issues using the new NXOS image, I was able to import and start device but afterwards I get a blank telnet session [Have tried a million different things but no luck]. The NXOS image boots properly in vm workstation.
FYI – vhv.enable = "true" is already setup for me.
any help would be great.''
Were you able to fix this? I am having exactly the same issue…Image is there, Unet tells me that it has started properly but the console session is blank :/
Stuart,
Thanks my friend… perfect! That does the job and thank you for pointing out the init.php!!
I too fired up nexus titanium but same problem…blank telnet session
Does it support vpc.
getting this error , help needed please.
[email protected]:~# cd /tmp/
[email protected]:/tmp# ls -l
total 2097164
-rw-r–r– 1 root root 2147483648 Dec 5 2012 N7K.vmdk
drwxr-xr-x 2 unl0 unl 4096 Aug 21 16:37 netio32768
drwx—— 2 root root 4096 Aug 21 15:44 vmware-root
[email protected]:/tmp# qemu-img convert -f vmdk -O qcow2 N7K.vmdk hda.qcow2
-bash: qemu-img: command not found
[email protected]:/tmp# qemu-img convert -f vmdk -0 qcow2 N7K.vmdk hda.qcow2
-bash: qemu-img: command not found
Thanks
if you try hide your Nexus ISO so no need to post your sweet lab with Nexus in your blog
I don't understand what you mean…
you are in the wrong folder, try /opt/qemu/bin/qemu-img
just google it @abdulfattah, nexus iso has copyright, you will never get it here…
How long are you waiting? The nx-os can take a long time to boot up
I gave mine a good 30 min…the node seems to be up but the terminal is just blank…
Dear,
Same error here “Blank telnet session”.
Did you guys get any solution.
Waiting for some response.
I was able to resolve the blank terminal issue by:
1. Renaming the image file to “virtioa.qcow2” (minus the quotes)
2. Re-run the fix permissions
3. Reboot vm
Bam! NX-OS works!
Dear,
My Nexus is booting in Switch(boot)# mode, not in NX-OS# mode.
What to do.
Check these links:
https://routing-bits.com/2012/05/08/n5k-stuck-in-boot-mod/
http://docwiki.cisco.com/wiki/Cisco_Nexus_7000_Series_NX-OS_Troubleshooting_Guide_–_Troubleshooting_Installs,_Upgrades,_and_Reboots#Recovery_from_the_switch.28boot.29.23_Prompt
My NXOS won’t boot too, so i used using the method posted by Chichi, it booted up and running ok.
So, what does renaming the image file to “virtioa.qcow2” do?
Do we need to do that for images in qemu folder?
Hi , Have you tried for NX9k ? i was trying but seems to be taking more time to bootup..
Not yet
Also does it need iso file ?
Probably not.
https://software.cisco.com/download/release.html?mdfid=286312239&flowid=81422&softwareid=282088129&release=7.0(3)I5(1)&relind=AVAILABLE&rellifecycle=&reltype=latest
Yeah, just download the qcow2 file (qemu) and use that.
Please post the original name of that iso file.. so that we can search..
probably dont need the iso file, just the qcow2 file should be sufficient
ok Thanks for the update.. but some how UNL is not detecting that image.. don t know why.. please try and let us know if you can sort it out..
I tried in GNS3 qemu configuration as well but some how its stay longer in telnet session with blank page..
I am able to boot up but its gone to iPXE mode i guess need to configure the boot file
nxosv-final.7.0.3.I5.1.qcow2
nxosv-final.7.0.3.I5.1.qcow2 won’t work in UNL because it require BOOT options and UNL doesn’t have them. Probably it has, but I didn’t dig a lot. I’ve launched the image on GNS3, but it’s very limited and doesn’t have even BGP, other cool stuff disabled as well.
I stumbled with UNL and Titanium, I can force it work even from gemu-system, console return me ATE0Q1&D2&C1S0=1 and that’s it. Any clues how to fix this?
When I get some free time I will try.
I can able to bootup but it stuck at shell mode.. did you tried ?
I have not tried yet. I am busy on other things at the moment. I will let you know when I have tried though.
Thanks fro the rep[ly
please help me, when I start the NX-OS device it starts for 1 or 2 seconds and then goes down. I dont know where can I find that .vnx file. Please help.
What .vnx file? there is no mention of a vnx file…
What are you running UNetLab in?
Oh I am sorry, thats a .vmx file as discussed above. I am trying to emulate NX-OS platform. to sum up everything before moving forward I would like to know is there any chances of testing VPC configuration by using this emulator???
Vpc is not supported at the moment
it’s works for me:
1. checkbox Virtualize Intel VT-x or AMD-V (processors EVE-NG VM)
2. name should be virtioa.qcow2 ( /opt/unetlab/addons/qemu/titanium-7/virtioa.qcow2 )
3. run the fix permissions
I’d appreciate it if you or anyone could share me the link from where i can able to download the image of Nexus 7k Image for eve-ng. I’ve google it but no luck.
There won’t be any sharing of images on this site.