Welcome, Guest
Username Password: Remember me

KVM Template with NIC's
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: KVM Template with NIC's

KVM Template with NIC's 2 months, 3 weeks ago #9208

  • KM
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
So, I'm trying to create a template that launches and has 2 NIC's attached. But I'm having some issues. I created the template by downloading an ISO, launching an instance attached to that ISO, and then installing like normal. The instance boots and everything is great.

The first issue is that the instance isn't getting an IP address on eth0 like Cloudstack says that it is. The interface shows up and I can configure it manually from the console. But its not getting the IP address that's listed in the web inteface.

Second is that I created a template from the instance. I did a shutdown, clicked on the volume, then created the template. Now, when the template launches it has no interfaces at all. I'm unable to configure eth0.

Is there something obvious I'm missing?

Re: KVM Template with NIC's 2 months, 3 weeks ago #9212

  • senner
  • OFFLINE
  • Fresh Boarder
  • Posts: 19
  • Karma: 0
If this is ubuntu, this is common on clones. Ubuntu links a mac to eth device and if that mac hardware addr changes it has issues.

On the clone VM remove "/etc/udev/rules.d/70-persistent-net.rules" and reboot and the ethernet devices will be detected.

Also install 'linux-virtual" kernel (to remove unneeded hardware drivers) installed as well as "cloud-init":

help.ubuntu.com/community/CloudInit

It may be easier to check out the Cloudstack template for ubuntu:
cloudstack.org/forum/9-templates-and-iso...lates-available.html

And customize or see how they did it.

Re: KVM Template with NIC's 2 months, 3 weeks ago #9216

  • KM
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
Its actually a CentOS template. But your right about the MAC address being the issue. I just checked and there's a MAC address in there from where I created the template.

The only other issue is that I tried to create the template with two ethernet interfaces. I checked the KVM instance it it showed two NIC's. But after creating and launching the template the instance only has one NIC listed when I check the KVM console.

Thanks for the tip though about the MAC address!
  • Page:
  • 1
Time to create page: 0.49 seconds

Resources

Open Source Resources Discuss Site Info

The CloudStack™project is in the process of moving to the Apache Foundation as a podling in the Apache Incubator. Going forward CloudStack will be developed and governed in the Apache way. CloudStack is available under the Apache License 2.0