Re: [D] Same network for VMs as KVM hosts? [cloudstack]

2024-04-28 Thread via GitHub


GitHub user weizhouapache added a comment to the discussion: Same network for 
VMs as KVM hosts?

@dR3b 
Is IP forwarding enabled?
The following command should return 1

cat /proc/sys/net/ipv4/ip_forward

GitHub link: 
https://github.com/apache/cloudstack/discussions/8998#discussioncomment-9255476


This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscr...@cloudstack.apache.org



Re: [D] Same network for VMs as KVM hosts? [cloudstack]

2024-04-28 Thread via GitHub


GitHub user dR3b added a comment to the discussion: Same network for VMs as KVM 
hosts?

@weizhouapache 

Thanks! After several pages in the documentation[1], I was able to complete the 
installation.

- [x] System-VM consoleproxy, Up and running
- [x] System-VM secondarystoragevm, Up and running
- [x] Virtual-Router, defaultGuestNetwork, Up and running
- [x] Compute-Instance, arch1-1, Running (192.168.1.196)

But now I have another question: I cannot ping the IP of “arch1-1” via a PC in 
the same network (192.168.1.53). From my Cloudstack Management/KVM host, 
however, it's possible. What have I forgotten?

[1] 
https://docs.cloudstack.apache.org/en/latest/adminguide/networking_and_traffic.html#configure-guest-traffic-in-an-advanced-zone

GitHub link: 
https://github.com/apache/cloudstack/discussions/8998#discussioncomment-9255081


This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscr...@cloudstack.apache.org



Re: No IP assigned to VM instance even though UI/router says otherwise

2024-04-28 Thread Wei ZHOU
Hi Rishi,

If you want to create a template manually, you can refer to
https://docs.cloudstack.apache.org/en/4.19.0.1/adminguide/templates/_create_linux.html
Some users use packer to build templates automatically, for example
https://github.com/PCextreme/packer-templates


-Wei


On Sun, Apr 28, 2024 at 8:24 PM Rishi Misra  wrote:
>
> Thank you Wei - since I am testing it on a different architecture, is there
> a way of creating my own templates (similar to Centos templates) ?
>
> On Sun, Apr 28, 2024 at 2:08 PM Wei ZHOU  wrote:
>
> > Hi Rishi,
> >
> > The systemvm template is not used for user vms. As you have noticed,
> > the network interfaces are configured by cloudstack , dhcp does not
> > work.
> > You can test with the built-in Centos 5 templates. You can also try
> > the templates on http://dl.openvm.eu/cloudstack/ (provided by NuxRo)
> >
> > -Wei
> >
> > On Sun, Apr 28, 2024 at 7:30 PM Rishi Misra 
> > wrote:
> > >
> > > Hi there,
> > >
> > > I am trying to understand why a VM instance created by Cloudstack does
> > not
> > > get an IP address in "Basic network" configuration. Interestingly, unter
> > > the "instances" page UI shows an IP assigned to my VM instance.
> > > Furthermore, the router VM adds an entry for my VM/IP in its "/etc/hosts"
> > > entry.
> > >
> > > However, when I try to ping/access the VM it does not have any IP
> > > associated with it.  It almost looks like it never picked up an IP from
> > the
> > > DHCP server running on the router.
> > >
> > > After investigating a bit I found that new VM instances use default.sh
> > > <
> > https://github.com/apache/cloudstack/blob/main/systemvm/debian/opt/cloud/bin/setup/default.sh
> > >
> > > as part of initialization which does not define any interfaces which in
> > > turn causes this issue.  I can get around it by manually adding an entry
> > in
> > > the "/etc/networking/interface" file which works well, however the
> > > interface is reset once the machine is rebooted (as part of cloud init).
> > >
> > > What could be going on here? I am using the same qcow2 image for SystemVM
> > > and User template.
> > >
> > > Thanks.
> >


Re: No IP assigned to VM instance even though UI/router says otherwise

2024-04-28 Thread Rishi Misra
Thank you Wei - since I am testing it on a different architecture, is there
a way of creating my own templates (similar to Centos templates) ?

On Sun, Apr 28, 2024 at 2:08 PM Wei ZHOU  wrote:

> Hi Rishi,
>
> The systemvm template is not used for user vms. As you have noticed,
> the network interfaces are configured by cloudstack , dhcp does not
> work.
> You can test with the built-in Centos 5 templates. You can also try
> the templates on http://dl.openvm.eu/cloudstack/ (provided by NuxRo)
>
> -Wei
>
> On Sun, Apr 28, 2024 at 7:30 PM Rishi Misra 
> wrote:
> >
> > Hi there,
> >
> > I am trying to understand why a VM instance created by Cloudstack does
> not
> > get an IP address in "Basic network" configuration. Interestingly, unter
> > the "instances" page UI shows an IP assigned to my VM instance.
> > Furthermore, the router VM adds an entry for my VM/IP in its "/etc/hosts"
> > entry.
> >
> > However, when I try to ping/access the VM it does not have any IP
> > associated with it.  It almost looks like it never picked up an IP from
> the
> > DHCP server running on the router.
> >
> > After investigating a bit I found that new VM instances use default.sh
> > <
> https://github.com/apache/cloudstack/blob/main/systemvm/debian/opt/cloud/bin/setup/default.sh
> >
> > as part of initialization which does not define any interfaces which in
> > turn causes this issue.  I can get around it by manually adding an entry
> in
> > the "/etc/networking/interface" file which works well, however the
> > interface is reset once the machine is rebooted (as part of cloud init).
> >
> > What could be going on here? I am using the same qcow2 image for SystemVM
> > and User template.
> >
> > Thanks.
>


Re: No IP assigned to VM instance even though UI/router says otherwise

2024-04-28 Thread Wei ZHOU
Hi Rishi,

The systemvm template is not used for user vms. As you have noticed,
the network interfaces are configured by cloudstack , dhcp does not
work.
You can test with the built-in Centos 5 templates. You can also try
the templates on http://dl.openvm.eu/cloudstack/ (provided by NuxRo)

-Wei

On Sun, Apr 28, 2024 at 7:30 PM Rishi Misra  wrote:
>
> Hi there,
>
> I am trying to understand why a VM instance created by Cloudstack does not
> get an IP address in "Basic network" configuration. Interestingly, unter
> the "instances" page UI shows an IP assigned to my VM instance.
> Furthermore, the router VM adds an entry for my VM/IP in its "/etc/hosts"
> entry.
>
> However, when I try to ping/access the VM it does not have any IP
> associated with it.  It almost looks like it never picked up an IP from the
> DHCP server running on the router.
>
> After investigating a bit I found that new VM instances use default.sh
> 
> as part of initialization which does not define any interfaces which in
> turn causes this issue.  I can get around it by manually adding an entry in
> the "/etc/networking/interface" file which works well, however the
> interface is reset once the machine is rebooted (as part of cloud init).
>
> What could be going on here? I am using the same qcow2 image for SystemVM
> and User template.
>
> Thanks.


No IP assigned to VM instance even though UI/router says otherwise

2024-04-28 Thread Rishi Misra
Hi there,

I am trying to understand why a VM instance created by Cloudstack does not
get an IP address in "Basic network" configuration. Interestingly, unter
the "instances" page UI shows an IP assigned to my VM instance.
Furthermore, the router VM adds an entry for my VM/IP in its "/etc/hosts"
entry.

However, when I try to ping/access the VM it does not have any IP
associated with it.  It almost looks like it never picked up an IP from the
DHCP server running on the router.

After investigating a bit I found that new VM instances use default.sh

as part of initialization which does not define any interfaces which in
turn causes this issue.  I can get around it by manually adding an entry in
the "/etc/networking/interface" file which works well, however the
interface is reset once the machine is rebooted (as part of cloud init).

What could be going on here? I am using the same qcow2 image for SystemVM
and User template.

Thanks.


Re: [D] Same network for VMs as KVM hosts? [cloudstack]

2024-04-28 Thread via GitHub


GitHub user weizhouapache added a comment to the discussion: Same network for 
VMs as KVM hosts?

I think a shared network with vlan=untagged is what you need.
You can use an advanced zone or advanced zone with security groups, or even a 
basic zone.

GitHub link: 
https://github.com/apache/cloudstack/discussions/8998#discussioncomment-9251078


This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscr...@cloudstack.apache.org