Re: Running qemu guest in background

2020-05-16 Thread Mahmood Naderan
>Use screen for text, xpra for graphical emulated machines - assuming FreeBSD / >Linux host of course. I guess xpra is for remote displaying. No? I don't want to see the local display on the host. The guest should be accessed via anydesk. Regards, Mahmood

Re: Running qemu guest in background

2020-05-16 Thread Mahmood Naderan
>Have you considered using libvirt? It is specifically designed to run >VMs as a daemon. > >If you want to stick with qemu only, something like a systemd service >should do. Can you give me some hints about libvirt for this purpose?Any guide for that? Regards, Mahmood

Re: [Qemu-discuss] undefined reference to `XOpenDisplay'

2019-07-07 Thread Mahmood Naderan
>What were your configure arguments? > If you don't care about milkymist at all then you could just >add --disable-opengl which will definitely cause us to not try to >build this bit of the code. I used ./configure only. Anyway, since I only wants x86-softmmu, I just built that without problem.

[Qemu-discuss] undefined reference to `XOpenDisplay'

2019-07-04 Thread Mahmood Naderan
Hi, On a centos 7 based system, I hit the following error while "make install" is executed. GEN trace/generated-helpers.c CC m68k-softmmu/trace/control-target.o CC m68k-softmmu/gdbstub-xml.o CC m68k-softmmu/trace/generated-helpers.o LINK

Re: [Qemu-discuss] Not want to use vnc

2019-06-24 Thread Mahmood Naderan
Anyway... I fixed that with --disable-vnc and --enable-gtk in configure command. Not sure if enabling gtk is mandatory though. Regards, Mahmood On Sun, Jun 23, 2019 at 9:59 PM Mahmood Naderan wrote: > Hi, > In the following command, I haven't specified vnc viewer. but I have to

Re: [Qemu-discuss] kvm_intel is loaded but user can not access that

2019-06-23 Thread Mahmood Naderan
OK. I manually created the group and added KERNEL=="kvm", GROUP="kvm" to /etc/udev/rules.d Regards, Mahmood On Fri, Jun 21, 2019 at 7:18 PM Peter Maydell wrote: > > Well, with those permissions on /dev/kvm only root can use KVM. > You need to sort them out one way or another... > > A

[Qemu-discuss] Not want to use vnc

2019-06-23 Thread Mahmood Naderan
Hi, In the following command, I haven't specified vnc viewer. but I have to use that actually. Is there any way to show the screen without vnc? [najafi@rocks7 ~]$ ssh -Y 10.1.1.130 najafi@10.1.1.130's password: Welcome to Ubuntu 16.04.5 LTS (GNU/Linux 4.15.0-52-generic x86_64) Last login: Sun Jun

Re: [Qemu-discuss] Uninstall qemu

2019-06-22 Thread Mahmood Naderan
So, I didn't use custom destination! Is it ok to find qemu-* files an delete them? On Sat, Jun 22, 2019, 20:16 Peter Maydell wrote: > Yeah, we don't have a "make uninstall". Assuming you installed > it into a suitably isolated destination directory, you can just > remove that directory.

Re: [Qemu-discuss] kvm_intel is loaded but user can not access that

2019-06-21 Thread Mahmood Naderan
>Does your user have the right permissions for the /dev/kvm device? >(For ubuntu this usually means the user should be in the 'kvm' >group.) There is no such group mahmood@hpcc-ubuntu:~$ sudo grep kvm /etc/group mahmood@hpcc-ubuntu:~$ mahmood@hpcc-ubuntu:~$ sudo ls -l /dev/kvm crw-rw+ 1 root

[Qemu-discuss] kvm_intel is loaded but user can not access that

2019-06-21 Thread Mahmood Naderan
Hi, Although I have installed qemu from source and the kvm module has been modprobed successfully, the user is not able to use -enbale-kvm option mahmood@hpcc-ubuntu:~$ sudo lsmod | grep kvm [sudo] password for mahmood: kvm_intel 217088 0 kvm 598016 1 kvm_intel

[Qemu-discuss] Memory limit of a windows guest

2019-01-04 Thread Mahmood Naderan
Hi Is there any limitation for the guest memory? I have defined "-m 4" for a windows guest while the host have 64GB of memory. However, in the windows, I see only 16GB of physical memory. Any thought? Regards, Mahmood

[Qemu-discuss] Sharing more than one folder via samba

2018-12-24 Thread Mahmood Naderan
Hi, How can I share two folders with a host (linux) and a guest (windows)? The following option seems to be incorrect -netdev user,net=10.0.2.0/24,id=host_files,restrict=off,smb=/home/mahmood,smbserver=10.0.2.4,smb=/etc,smbserver=10.0.2.5 Any idea? Regards, Mahmood

Re: [Qemu-discuss] Specify number of cores for the guest

2018-12-02 Thread Mahmood Naderan
>That's because Qemu by default presents each CPU with it's own Socket >and Non-Server Windows (because of Licensing Reasons) supports only one >Socket. You should set it like: -smp cpus=1,cores=5 >See https://qemu.weilnetz.de/doc/qemu-doc.html#index-_002dsmp Even with "-smp cpus=1,cores=8" I

Re: [Qemu-discuss] VNC port conflict

2017-01-22 Thread Mahmood Naderan
​Thanks for the suggestions. I will try them. Regards, Mahmood

Re: [Qemu-discuss] VNC port conflict

2017-01-22 Thread Mahmood Naderan
>you can run ps -eaf |grep vnc to see whcih all ports being reserved Isn't there any easier way? Users are not expert, so do not expect to use ps command and see which vnc port is free... If I don't use vnc, the qemu will bring up the screen. So, the question is what is the benefit of using vnc?

[Qemu-discuss] VNC port conflict

2017-01-22 Thread Mahmood Naderan
Hi, Recently, as I run the qemu command to bring up windows guest, it aborts with a vnc error $ qemu -m 3000 -cpu Opteron_G5 -hda qemu-vm/win2xpsp3_32_c.img -hdb qemu-vm/win2xpsp3_32_d.img -boot c -usbdevice tablet -enable-kvm -device e1000,netdev=host_files -netdev

Re: [Qemu-discuss] Multiple snapshots with one guest user

2017-01-19 Thread Mahmood Naderan
Thanks. >Specify size at the end Is that the same as the size of the /opt/qemuvm/win2xpsp3_32_c.img ? May i ask what is the difference between the following commands 1) qemu-img create -o backing_file base.img new.img 10G 2) qemu-img create -f qcow2 -b base.img new.img Regards, Mahmood

Re: [Qemu-discuss] Multiple snapshots with one guest user

2017-01-19 Thread Mahmood Naderan
>Then you create 1 file for each host user based on the same base file: >qemu-img create -o backing_file win.qcow2 win_for_user_1.qcow2 Hi, Any idea about the following error $ qemu-img create -o backing_file /opt/qemuvm/win2xpsp3_32_c.img /export/home/mahmood/qemu-vm/win2xpsp3_32_c.img

[Qemu-discuss] Network driver problem with the guest

2017-01-16 Thread Mahmood Naderan
Hi, A windows xp (x64) shows the network connection with the following command -devive e1000,netdev=host_files -netdev user,net= 10.0.2.0/24,id=host_files,restrict=off,smb=/home/mahmood,smbserver=10.0.2.4 However, with the same command, a windows xp (32bit) doesn't detect the driver and the

[Qemu-discuss] Guest screen resolution problem

2017-01-15 Thread Mahmood Naderan
Hi, I use the following command to run a windows guest. qemu -m 6000 -cpu Opteron_G5 -smp 4 -hda winxp64_c.img -hdb winxp64_d.img --boot c -usbdevice tablet -enable-kvm -device e1000,netdev=host_files -netdev user,net= 10.0.2.0/24,id=host_files,restrict=off,smb=/home/mahmood,smbserver=10.0.2.4

Re: [Qemu-discuss] failed to start qemu after system restart

2016-04-08 Thread Mahmood Naderan
OK I will try. Thank you very much. Regards, Mahmood

Re: [Qemu-discuss] failed to start qemu after system restart

2016-04-07 Thread Mahmood Naderan
>Have you added "-enable-kvm" to your qemu scripts recently? I always used "qemu -cdrom -enable-kvm -vnc :10 ." in my commands. What do you mean by qemu scripts?  Regards, Mahmood

[Qemu-discuss] Problem with sharing a folder between guest and host

2016-03-29 Thread Mahmood Naderan
Hi,I have read that it is possible to use SAMBA to share a folder between a Linux host and a Windows guest., The command I use is qemu -m 2048 -hda winx64.img -boot d -usbdevice tablet -enable-kvm -vnc :10 -net user,smb=/home/mahmood -net nic,model=virtio Here are the problems: 1) What IP

Re: [Qemu-discuss] Internet connection from a windows guest

2016-03-29 Thread Mahmood Naderan
OK. Thank you very much. That solves my problem, but there is a new problem which I will ask in another post Regards, Mahmood On Monday, March 28, 2016 1:22 PM, Narcis Garcia wrote: Instead of: -devi ce e1000 I use: rtl8139

[Qemu-discuss] How to uninstall qemu?

2013-11-20 Thread Mahmood Naderan
Hi There is no uninstall target in Makefile. So how can I remove that? # /usr/local/bin/qemu-x86_64  -version qemu-x86_64 version 1.6.90, Copyright (c) 2003-2008 Fabrice Bellard   Regards, Mahmood

[Qemu-discuss] On Qemu Networking

2013-11-19 Thread Mahmood Naderan
Hi I have followed the networking manual from these manuals http://wiki.qemu.org/Documentation/Networking https://wiki.archlinux.org/index.php/QEMU#Networking However I have been confused and did not find a clear answer for this question How can I connect to internet from the guest machine?

[Qemu-discuss] two questions regarding the guest window

2013-11-18 Thread Mahmood Naderan
Hi, I have two questions regarding the guest window 1- The position of mouse inside the guest operating system is not synced with the host os. I mean when I the actual position of the mouse in the host os is on the top right, I see that the mouse position inside the guest os is in the middle

Re: [Qemu-discuss] PCI bus not available

2013-11-17 Thread Mahmood Naderan
/Windows.XP.Professional.SP3.iso -hda /home/mahmood/winxp -boot order=adc,menu=on -net none -name Windows XP -vnc :10 Any idea on that?   Regards, Mahmood On Sunday, November 17, 2013 11:35 AM, Mahmood Naderan nt_mahm...@yahoo.com wrote: Here are some information regarding the host system $ uname -a Linux

[Qemu-discuss] PCI bus not available

2013-11-16 Thread Mahmood Naderan
Hello I have installed Qemu form git source and AQemu for the gui part. When I start a virtual machine, I get this error PCI bus not available for es1370. I can not find any option regarding that. How can I fix that? Regards, Mahmood