WIndows VM without internet connectivity

86 views
Skip to first unread message

Vishesh Tanksale

unread,
Oct 10, 2018, 5:13:59 PM10/10/18
to kubevirt-dev
Hi,

I created a windows 2012 server vm with following yaml 

kind: VirtualMachineInstancePreset
metadata:
  name: win2k12r2
spec:
  selector:
    matchLabels:
      kubevirt.io/os: win2k12r2
  domain:
    clock:
      utc: {}
      timer:
        hpet:
          present: false
        pit:
          tickPolicy: delay
        rtc:
          tickPolicy: catchup
        hyperv: {}
    cpu:
      cores: 2
    devices: {}
    features:
      acpi: {}
      apic: {}
      hyperv:
        relaxed: {}
        vapic: {}
        spinlocks:
          spinlocks: 8191
    resources:
      requests:
        memory: 4Gi
---
kind: VirtualMachine
metadata:
  labels:
    kubevirt.io/os: win2k12r2
  name: testvm-win
spec:
  running: false
  template:
    metadata:
      labels:
        kubevirt.io/os: win2k12r2
    spec:
      domain:
        devices:
          disks:
          - disk:
              bus: sata
            name: rootdisk
            volumeName: rootvolume
          interfaces:
          - bridge: {}
            model: e1000
            name: default
      terminationGracePeriodSeconds: 0
      volumes:
      - name: rootvolume
        persistentVolumeClaim:
          claimName: example-local-claim
      networks:
      - name: default
        pod: {}

The VM boots up, but it does not have internet access. I also have a Centos 7 VM on the same node it gets internet access. The network config on Centos and Windows is same. The Windows VM cannot even reach the default gateway. 

Routing table looks like this on the VM

image.png
























I am using Weave as the CNI. What can be the issue here?

Thanks,
Vishesh Tanksale

Fabian Deutsch

unread,
Oct 18, 2018, 4:47:00 AM10/18/18
to Vishesh Tanksale, Sebastian Scheinkman, Yuval Lifshitz, Petr Horacek, Ihar Hrachyshka, Gage Orsburn, kubevirt-dev
Hey Vishesh,

just getting back from PTO and now see your email.
Did you ever get a reply?

We some ideas, and I think there was an issue related to this. Looping in some folks who might know more.

- fabian

--
You received this message because you are subscribed to the Google Groups "kubevirt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubevirt-dev...@googlegroups.com.
To post to this group, send email to kubevi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubevirt-dev/2eca9390-209f-4918-b137-8e6b08d7270c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vishesh Tanksale

unread,
Oct 18, 2018, 10:17:59 AM10/18/18
to Fabian Deutsch, Gage Orsburn, Ihar Hrachyshka, Petr Horacek, Sebastian Scheinkman, Yuval Lifshitz, kubevirt-dev
Hi Fabian,

Yes I got a lot of help from Sebastian. The issue was related to 

Thanks,
Vishesh Tanksale 

Fabian Deutsch

unread,
Oct 18, 2018, 10:22:49 AM10/18/18
to Vishesh Tanksale, Gage Orsburn, Ihar Hrachyshka, Petr Horacek, Sebastian Scheinkman, Yuval Lifshitz, kubevirt-dev
Hey Vishesh,

cool! And I see that the fix was merged just today, thus I created a fresh tag: https://github.com/kubevirt/kubevirt/releases/tag/v0.9.2

Feel free to test this and let us know if this really fixes the issue for you as well.

Greetings
- fabian

Reply all
Reply to author
Forward
0 new messages