qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-discuss] unsubscribe


From: Bradley, Mike
Subject: [Qemu-discuss] unsubscribe
Date: Fri, 19 Sep 2014 13:30:58 +0000



-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of address@hidden
Sent: Thursday, September 18, 2014 10:08 PM
To: address@hidden
Subject: Qemu-discuss Digest, Vol 36, Issue 21

Send Qemu-discuss mailing list submissions to
        address@hidden

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.nongnu.org/mailman/listinfo/qemu-discuss
or, via email, send a message with subject or body 'help' to
        address@hidden

You can reach the person managing the list at
        address@hidden

When replying, please edit your Subject line so it is more specific than "Re: 
Contents of Qemu-discuss digest..."


Today's Topics:

   1. Re: Compiling custom QEMU fails (Peter Maydell)
   2. Re: Issue with qemu chroot and musl (Dave Flogeras)
   3. Re: need help in setting up tap networking for using qemu
      virtual machine (Chan Kim)
   4. Re: need help in setting up tap networking for using qemu
      virtual machine (??)


----------------------------------------------------------------------

Message: 1
Date: Thu, 18 Sep 2014 14:23:54 -0700
From: Peter Maydell <address@hidden>
To: Max Gorley <address@hidden>
Cc: "address@hidden" <address@hidden>
Subject: Re: [Qemu-discuss] Compiling custom QEMU fails
Message-ID:
        <address@hidden>
Content-Type: text/plain; charset=UTF-8

On 18 September 2014 14:09, Max Gorley <address@hidden> wrote:
> Here is the full output (starting with shell):
>
> address@hidden:~/qemu-pi/qemu# make
>   CC    ui/gtk.o
> ui/gtk.c: In function ?gd_vc_vte_init?:
> ui/gtk.c:1460:7: error: ?VirtualConsole? has no member named ?vte?
>      vc->vte.chr = chr;
>        ^
> ui/gtk.c:1463:41: error: ?VirtualConsole? has no member named ?vte?
>      vc->label = g_strdup_printf("%s", vc->vte.chr->label
>                                          ^
> ui/gtk.c:1464:37: error: ?VirtualConsole? has no member named ?vte?
>                                  ? vc->vte.chr->label : buffer);
>                                      ^
> ui/gtk.c:1467:7: error: ?VirtualConsole? has no member named ?vte?
>      vc->vte.terminal = vte_terminal_new();
>        ^
> ui/gtk.c:1467:5: error: implicit declaration of function ?vte_terminal_new?

[etc]

You don't have the libvte library installed, and the QEMU tree you're using is 
too old to support compiling the GTK UI without VTE support (that was added in 
upstream commit bbbf9bfb9c27).

I suggest you try either:
(1) installing your system's libvte development packages
(2) passing configure the --disable-gtk option to turn off the GTK frontend 
completely (you will probably get the SDL frontend instead)

-- PMM



------------------------------

Message: 2
Date: Thu, 18 Sep 2014 19:03:41 -0300
From: Dave Flogeras <address@hidden>
Cc: qemu-discuss <address@hidden>
Subject: Re: [Qemu-discuss] Issue with qemu chroot and musl
Message-ID:
        <address@hidden>
Content-Type: text/plain; charset=UTF-8

On Thu, Sep 18, 2014 at 4:39 PM, Peter Maydell <address@hidden> wrote:
> Anyway, if you can test the suggested fix above and let me know if it 
> works, I'll submit a patch to qemu-devel for it.
>

Yup, that made the warning disappear on musl too.  Thanks!



------------------------------

Message: 3
Date: Fri, 19 Sep 2014 00:03:28 +0000
From: Chan Kim <address@hidden>
To: Tony Su <address@hidden>
Cc: "address@hidden" <address@hidden>
Subject: Re: [Qemu-discuss] need help in setting up tap networking for
        using qemu virtual machine
Message-ID: <address@hidden>
Content-Type: text/plain; charset="ks_c_5601-1987"


Hi,

> - Have you checked you don't have a name resolution problem? Try 
> pinging one of Google's IP addresses instead of the name.
when I ping to google.com, I used actual IP address. 
On windows command window, if I ping google.com, I can see it's IP address 
which was 74.125.235.64.

> - Do you have a DG configured? Run the route command to verify.
What do you mean by DG?

Chan




?? ?? : "Tony Su" <address@hidden> ?? ?? : 2014-09-19 01:05:39 ( +09:00 ) ?? ?? 
: ?? <address@hidden> ?? : address@hidden <address@hidden> ?? : Re: 
[Qemu-discuss] need help in setting up tap networking for using qemu virtual 
machine

Without actually testing your scripts,

- Have you checked you don't have a name resolution problem? Try pinging one of 
Google's IP addresses instead of the name.
- Do you have a DG configured? Run the route command to verify.

Tony

On Thu, Sep 18, 2014 at 6:08 AM, Chan Kim wrote:
>
> Forgot to mention that while qemu is running with RTEMS telnetd.exe, 
> (with ETH0IP set to 48) from the host I get ping response from 47 and 48. But 
> I cannot ping to google.com.
> and when I type in the password at telnet, I can get in to both.
> (but couple of times got 'connection close by foreign host.' I 
> remember) Thanks a lot.
> Chan Kim
>
>
>
>
> ?? ?? : "??" 
> ?? ?? : 2014-09-18 22:00:32 ( +09:00 ) ?? ?? : address@hidden 
> ?? :
> ?? : need help in setting up tap networking for using qemu virtual 
> machine
>
> Hello, everyone!
>
> It's good to have some people to ask this.. I really need a help from you and 
> this should be a basic question.
> I'm trying to run a virtual machine (using qemu-system-sparc, I added lan9220 
> emulation model inside) on my CentOS 6.4 machine.
> I've read 
> [url]http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/centos-6-and-kvm-how-to-setup-bridged-networking-in-kvm-in-a-class-b-environment-4175433990/[/url]
>  but my case seems different and I am not sure if this previous post is 
> correct or not.
>
> My host ip is 129.254.132.47. and I want my virtual machine to be 
> 129.254.132.48. (it's class B network)
>
> I have /etc/qemu-ifup like this
>
> --------------------- start ------------------------- #!/bin/sh # # 
> script to bring up the tun device in QEMU in bridged mode # first 
> parameter is name of tap device (e.g. tap0) # # some constants 
> specific to the local host - change to suit your host # # guest 132.48 
> host 132.47 bridge 132.64 set -x
> ETH0IP=129.254.132.47
> GATEWAY=129.254.132.1
> BROADCAST=129.254.255.255
> #
> # First take eth0 down, then bring it up with IP address 0.0.0.0 # 
> /sbin/ifdown eth0 /sbin/ifconfig eth0 0.0.0.0 promisc up # # Bring up 
> the tap device (name specified as first argument, by QEMU) # 
> /usr/sbin/openvpn --mktun --dev $1 --user `id -un` /sbin/ifconfig $1 
> 0.0.0.0 promisc up # # create the bridge between eth0 and the tap 
> device # /usr/sbin/brctl addbr br0 /usr/sbin/brctl addif br0 eth0 
> /usr/sbin/brctl addif br0 $1 # # only a single bridge so loops are not 
> possible, turn off spanning tree protocol # /usr/sbin/brctl stp br0 
> off # # Bring up the bridge with ETH0IP and add the default route # 
> /sbin/ifconfig br0 $ETH0IP netmask 255.255.0.0 broadcast $BROADCAST 
> /sbin/route add default gw $GATEWAY # # stop firewall - comment this 
> out if you don't use Firestarter # #/sbin/service firestarter stop
> --------------------- end -------------------------
>
> and /etc/qemu-ifdown as
>
> ------------------- start -------------------------- #!/bin/sh # # 
> Script to bring down and delete bridge br0 when QEMU exits # # Bring 
> down eth0 and br0 # set -x /sbin/ifdown eth0 /sbin/ifdown br0 
> /sbin/ifconfig br0 down # # Delete the bridge # /usr/sbin/brctl delbr 
> br0 # # bring up eth0 in "normal" mode # /sbin/ifconfig eth0 -promisc 
> /sbin/ifup eth0 # # delete the tap device # /usr/sbin/openvpn --rmtun 
> --dev $1 # # start firewall again # #/sbin/service firestarter start
> -------------------- end --------------------------
>
> and I start my virtual machine with this command :
>
> qemu-system-sparc -M ALDEBARAN -serial stdio -kernel 
> telnetd/o-optimize/telnetd.exe -net nic -net tap,ifname=tap0 (this 
> makes /etc/qemu-ifup tap0 and /etc/qemu-ifdown tap0 run before and 
> after qemu run.)
>
> When I run above command, I can see the virtual machine's code is 
> running. (it's RTEMS network-demo program. telnetd.exe) From outside the 
> host, I can ping to host and the guest. So I thought everything is fine But I 
> then I found something is wrong..
> When I telnet to 129.254.132.47, it is centOS as expected.
> But when I telnet to 129.254.132.48, it takes unusually long (like 10 
> seonds?) then I see the loging prompt coming from CentOS.(the host) I can log 
> into it, and it's my host machine.
> (By the way, both telnetting looked hampered by something, like 
> interfering one another by wrong setting..)
>
> I can run the same telnetd program using actual board the qemu 
> emulator is emulating, and I can telnet to the board (and of course 
> it's RTEMS). Only, when using actual board, I use physical network 
> cable between my host and the board. (host 10.10.10.1 and the board 
> 10.10.10.11)
>
> I tried setting ETH0IP to 129.254.132.47 in qemu-ifup script but it didn't 
> work.
>
> Please anyone tell me what the problem is..
>
> Kind regards,
> Chan Kim

------------------------------

Message: 4
Date: Fri, 19 Sep 2014 02:07:06 +0000
From: ?? <address@hidden>
To: "address@hidden" <address@hidden>
Subject: Re: [Qemu-discuss] need help in setting up tap networking for
        using qemu virtual machine
Message-ID: <address@hidden>
Content-Type: text/plain; charset="utf-8"



In this strainge state, when I type 'arp -an', I get

address@hidden:/lib/modules/2.6.32-358.2.1.el6.x86_64<mailto:address@hidden:/lib/modules/2.6.32-358.2.1.el6.x86_64>]
 arp -an ? (129.254.132.1) at <incomplete> on eth0 ? (129.254.132.39) at 
f4:6d:04:05:6a:c9 [ether] on br0

This mean seen from the host, the router's mac address is 'incomplete' (what's 
it mean?) and my PC (not the host, or guest) is seen on br0. My PC should be 
seen on eth0 I think and only the virtual machine should be see from the br0.  
Hope somebody could tell me what is going on here.
Thanks!
Chan

________________________________
?? ?? : "??" <address@hidden>
?? ?? : 2014-09-18 22:09:00 ( +09:00 )
?? ?? : address@hidden <address@hidden> ?? :
?? : RE: need help in setting up tap networking for using qemu virtual machine


Forgot to mention that while qemu is running with RTEMS telnetd.exe, (with 
ETH0IP set to 48) from the host I get ping response from 47 and 48. But I 
cannot ping to google.com.
and when I type in the password at telnet, I can get in to both.
(but couple of times got 'connection close by foreign host.' I remember) Thanks 
a lot.
Chan Kim




?? ?? : "??"
?? ?? : 2014-09-18 22:00:32 ( +09:00 )
?? ?? : address@hidden
?? :
?? : need help in setting up tap networking for using qemu virtual machine

Hello, everyone!

It's good to have some people to ask this.. I really need a help from you and 
this should be a basic question.
I'm trying to run a virtual machine (using qemu-system-sparc, I added lan9220 
emulation model inside) on my CentOS 6.4 machine.
I've read 
[url]http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/centos-6-and-kvm-how-to-setup-bridged-networking-in-kvm-in-a-class-b-environment-4175433990/[/url]
 but my case seems different and I am not sure if this previous post is correct 
or not.

My host ip is 129.254.132.47. and I want my virtual machine to be 
129.254.132.48. (it's class B network)

I have /etc/qemu-ifup like this

--------------------- start ------------------------- #!/bin/sh # # script to 
bring up the tun device in QEMU in bridged mode # first parameter is name of 
tap device (e.g. tap0) # # some constants specific to the local host - change 
to suit your host # # guest 132.48 host 132.47 bridge 132.64 set -x
ETH0IP=129.254.132.47
GATEWAY=129.254.132.1
BROADCAST=129.254.255.255
#
# First take eth0 down, then bring it up with IP address 0.0.0.0 # /sbin/ifdown 
eth0 /sbin/ifconfig eth0 0.0.0.0 promisc up # # Bring up the tap device (name 
specified as first argument, by QEMU) # /usr/sbin/openvpn --mktun --dev $1 
--user `id -un` /sbin/ifconfig $1 0.0.0.0 promisc up # # create the bridge 
between eth0 and the tap device # /usr/sbin/brctl addbr br0 /usr/sbin/brctl 
addif br0 eth0 /usr/sbin/brctl addif br0 $1 # # only a single bridge so loops 
are not possible, turn off spanning tree protocol # /usr/sbin/brctl stp br0 off 
# # Bring up the bridge with ETH0IP and add the default route # /sbin/ifconfig 
br0 $ETH0IP netmask 255.255.0.0 broadcast $BROADCAST /sbin/route add default gw 
$GATEWAY # # stop firewall - comment this out if you don't use Firestarter # 
#/sbin/service firestarter stop
--------------------- end -------------------------

and /etc/qemu-ifdown as

------------------- start -------------------------- #!/bin/sh # # Script to 
bring down and delete bridge br0 when QEMU exits # # Bring down eth0 and br0 # 
set -x /sbin/ifdown eth0 /sbin/ifdown br0 /sbin/ifconfig br0 down # # Delete 
the bridge # /usr/sbin/brctl delbr br0 # # bring up eth0 in "normal" mode # 
/sbin/ifconfig eth0 -promisc /sbin/ifup eth0 # # delete the tap device # 
/usr/sbin/openvpn --rmtun --dev $1 # # start firewall again # #/sbin/service 
firestarter start
-------------------- end --------------------------

and I start my virtual machine with this command :

qemu-system-sparc -M ALDEBARAN -serial stdio -kernel 
telnetd/o-optimize/telnetd.exe -net nic -net tap,ifname=tap0 (this makes 
/etc/qemu-ifup tap0 and /etc/qemu-ifdown tap0 run before and after qemu run.)

When I run above command, I can see the virtual machine's code is running. 
(it's RTEMS network-demo program. telnetd.exe) From outside the host, I can 
ping to host and the guest. So I thought everything is fine But I then I found 
something is wrong..
When I telnet to 129.254.132.47, it is centOS as expected.
But when I telnet to 129.254.132.48, it takes unusually long (like 10 seonds?) 
then I see the loging prompt coming from CentOS.(the host) I can log into it, 
and it's my host machine.
(By the way, both telnetting looked hampered by something, like interfering one 
another by wrong setting..)

I can run the same telnetd program using actual board the qemu emulator is 
emulating, and I can telnet to the board (and of course it's RTEMS). Only, when 
using actual board, I use physical network cable between my host and the board. 
(host 10.10.10.1 and the board 10.10.10.11)

I tried setting ETH0IP to 129.254.132.47 in qemu-ifup script but it didn't work.

Please anyone tell me what the problem is..

Kind regards,
Chan Kim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.nongnu.org/archive/html/qemu-discuss/attachments/20140919/e3d6c144/attachment.html>

------------------------------

_______________________________________________
Qemu-discuss mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/qemu-discuss


End of Qemu-discuss Digest, Vol 36, Issue 21
********************************************



reply via email to

[Prev in Thread] Current Thread [Next in Thread]