Finally got it working on a MAC! I used VirtualBox instead of QEMU. I think
Yuri was right about the different hardware support for virtualization
between QEMU and Virtual Box. The biggest problem was running the serial
connection on VirtualBox. On Unix and MAC it uses socat to make the serial
to TCP connection. On Windows it uses putty. Socat is easily available on
unix, but on MACs you have to download it separately, compile it and then
make sure it's in the path to be recognized. Once all of that is done XRv
runs very nicely and smooth, just make sure to let the router boot before
connecting to the console or it will take a while to output all of the text.
Here are some links I used to make this work:
Download socat: http://www.dest-unreach.org/socat/
Compile Socat:
http://www.xappsoftware.com/wordpress/2013/10/10/how-to-run-socat-on-mac-os-x/
Used Xcode for compiling and had to install the command line tools:
https://developer.apple.com/technologies/tools/ and
http://stackoverflow.com/questions/6793823/configure-cant-find-c-compiler-after-os-x-lion-installation
Video for VirtualBox and XRv config:
http://www.youtube.com/watch?v=iXNPheJuhCQ&feature=youtu.be ( thanks Joe
for the link, this should work as long as you have socat installed.)
Sorry for the quick info, but excited to get it working and running. Let me
know if you have questions.
Tom Kacprzynski
On Fri, Feb 14, 2014 at 7:34 AM, Manouchehr <manouchehr1979_at_gmail.com>wrote:
>
> Pls share your tips on how to run on Mac OS.
>
> Thanks
>
> Sent from my iPhone
>
> > On Feb 14, 2014, at 2:19 PM, Tom Kacprzynski <tom.kac_at_gmail.com> wrote:
> >
> > Thanks for the links and tips Yuri!
> >
> > Has any one else had a chance to run this on QEMU on a MAC, in GNS3? I
> got
> > it working yesterday, but it takes forever to load the vXR. I gave it 4
> GB,
> > but the process wasn't using that much, so RAM can't be an issue.
> >
> > Thanks
> >
> > Tom
> >
> >
> > On Fri, Feb 14, 2014 at 6:34 AM, Alessandro Braga <sandro.unix_at_gmail.com
> >wrote:
> >
> >> Yuri,
> >>
> >> great news. Thanks for sharing your experiences.
> >>
> >> I will do tests in the next week.
> >>
> >> BR,
> >>
> >>
> >> 2014-02-14 1:12 GMT-02:00 Yuri Bank <yuribank_at_gmail.com>:
> >>
> >>> Something is up with the mailing list?? Not seeing any messages.
> >>>
> >>> -yurib
> >>>> On Feb 9, 2014 10:54 PM, "Yuri Bank" <yuribank_at_gmail.com> wrote:
> >>>>
> >>>> Ok. Just an update for those interested.
> >>>>
> >>>>
> >>>> I basically followed this guide:
> >>>> https://supportforums.cisco.com/docs/DOC-39939
> >>>>
> >>>> I've added a few extra tips:
> >>>>
> >>>> *You will need the latest version of QEMU, or the UDP tunnels patch if
> >>> you
> >>>> have a version < 1.0)
> >>>>
> >>>> *Convert to the vmdk image to qcow2 (may not be necessary depending on
> >>> the
> >>>> version of qemu you have. I had some problems booting the image while
> >> it
> >>>> was in vmdk format)
> >>>>
> >>>> qemu-img convert -f vmdk -O qcow2 iosxrv-demo.vmdk iosxrv-demo.qcow2
> >>>>
> >>>> *create two copies of the image:
> >>>>
> >>>> Now you are ready to to run the VM.
> >>>>
> >>>> qemu-system-x86_64 \
> >>>> -hda iosxrv-demo1.qcow2 \
> >>>> -enable-kvm \
> >>>> -m 3072 \
> >>>> -serial telnet:localhost:2001,server,nowait \
> >>>> -net nic,vlan=1,macaddr=00:aa:aa:aa:aa:11 -net
> >>>> socket,vlan=1,udp=:8001,localaddr=:7001 \
> >>>> -net nic,vlan=2,macaddr=00:aa:aa:aa:aa:12 -net
> >>>> socket,vlan=2,udp=:8002,localaddr=:7002 \
> >>>>
> >>>>
> >>>> qemu-system-x86_64 \
> >>>> -hda iosxrv-demo2.qcow2 \
> >>>> -enable-kvm \
> >>>> -m 3072 \
> >>>> -serial telnet:localhost:2002,server,nowait \
> >>>> -net nic,vlan=1,macaddr=00:bb:bb:bb:bb:11 -net
> >>>> socket,vlan=1,udp=:7001,localaddr=:8001 \
> >>>> -net nic,vlan=2,macaddr=00:bb:bb:bb:bb:12 -net
> >>>> socket,vlan=2,udp=:7002,localaddr=:8002 \
> >>>>
> >>>>
> >>>> GNS3:
> >>>>
> >>>> You can also just add the qcow2 image as a QEMU Host in GNS3. This
> will
> >>>> make everything drag and drop, and you can deploy your topology as you
> >>>> would normally in GNS3.
> >>>>
> >>>> So far I have a topology ( fully virtual ) with a few IOS XRv routers,
> >>>> JunsOS Olives, and a 3700s running in dynamips.
> >>>>
> >>>>
> >>>> I've tested the following protocols:
> >>>>
> >>>> OSPF: Good
> >>>> LDP: Good
> >>>> RSVP-TE: Good.
> >>>> MPLS transit Data-plane GOOD (see exception below)
> >>>>
> >>>> VPLS.
> >>>> *L2vpn ( Martini) LDP signaled VFI works in the control-plane. But the
> >>>> data-plane functionality is NOT there. Packets received on the CE
> >> facing
> >>>> interface (Attachment circuit) are not forwarded :-(
> >>>> *L2vpn ( kompella) BGP Auto-Discovery. I'm able to get the l2vpn vpls
> >>>> address-family configured & running in BGP. I'm also able to exchange
> >>> vpls
> >>>> NLRI. Obviously, with the same forwarding issues mentioned above.
> >>>>
> >>>>
> >>>> Cisco is going in the right direction with this. I hope they expand
> the
> >>> L2
> >>>> functions. Being able to configure the services is GREAT, but it would
> >> be
> >>>> really nice to send a few pings through to verify the configuration,
> >> and
> >>> to
> >>>> see what the label stacks looks like, etc.........
> >>>>
> >>>> -YuriB
> >>>>
> >>>>
> >>>>> On Sun, Feb 9, 2014 at 12:47 PM, Yuri Bank <yuribank_at_gmail.com>
> wrote:
> >>>>>
> >>>>> I will posting instructions on how to get this setup on Linux (
> >> QEMU/KVM
> >>>>> ) and fully integrated with Dynamips IOS routers & Real Hardware.
> >>>>>
> >>>>>
> >>>>> w00t!
> >>
> http://www.cisco.com/en/US/docs/ios_xr_sw/ios_xrv/install_config/b_xrvr_432_chapter_01.html
> >>>>>
> >>>>>
> >>>>> -YuriB
> >>>
> >>>
> >>> Blogs and organic groups at http://www.ccie.net
> >>>
> >>> _______________________________________________________________________
> >>> Subscription information may be found at:
> >>> http://www.groupstudy.com/list/CCIELab.html
> >>
> >>
> >> --
> >> Alessandro Braga
> >> CCIE #30939
> >>
> >>
> >> Blogs and organic groups at http://www.ccie.net
> >>
> >> _______________________________________________________________________
> >> Subscription information may be found at:
> >> http://www.groupstudy.com/list/CCIELab.html
> >
> >
> > Blogs and organic groups at http://www.ccie.net
> >
> > _______________________________________________________________________
> > Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
Blogs and organic groups at http://www.ccie.net
Received on Mon Feb 17 2014 - 20:02:35 ART
This archive was generated by hypermail 2.2.0 : Sat Mar 01 2014 - 08:41:48 ART