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
t without problem. Regards, Mahmood

[Qemu-discuss] Using smp option for multi processor configuration

2019-07-07 Thread Mahmood Naderan
Hi, The host have two CPUs each have 8 physical cores. Therefore, 32 threads are there in total. I want to be sure when I use -smp 16, the guest uses both CPUs and not only one CPU with 16 threads. Is that correct? Regards, Mahmood

[Qemu-discuss] undefined reference to `XOpenDisplay'

2019-07-04 Thread Mahmood Naderan
lm32-softmmu] Error 2 [root@compute-0-4 qemu-3.1.0]# I found this topic https://stackoverflow.com/questions/2975304/undefined-reference-to-xopendisplay-in-a-qt-project Should I use it? Regards, Mahmood

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 ou

[Qemu-discuss] Not want to use vnc

2019-06-23 Thread Mahmood Naderan
;-usbdevice' is deprecated, please use '-device usb-...' instead VNC server running on 127.0.0.1:5900 ^Cqemu-system-x86_64: terminating on signal 2 Regards, Mahmood

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. Mostly

[Qemu-discuss] Uninstall qemu

2019-06-22 Thread Mahmood Naderan
Hi, I want to uninstall qemu but it seems that "sudo make uninstall" in the source folder doesn't work. There is no rule for that. Any idea? Regards, Mahmood

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

[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
quot;-smp cpus=1,cores=8" I get this error cpu topology: sockets (1) * cores (8) * threads (1) > maxcpus (1) Odd... Isn't it? Regards, Mahmood

Re: [Qemu-discuss] [Qemu-devel] Accessing a shared folder

2017-08-31 Thread Mahmood
OK. So, it seems that 9p is not enabled in Centos 7 kernel. However, Ubuntu 16.04 enables it. I verified that with    cat /boot/config* | grep -i 9p Thank you very much. Regards, Mahmood

Re: [Qemu-discuss] Accessing a shared folder

2017-08-30 Thread Mahmood
st boots normally. I haven't tried to see if I am able to access the shared folder nor not. Do you have any note on the above items? Regards, Mahmood

Re: [Qemu-discuss] Accessing a shared folder

2017-08-30 Thread Mahmood
Hello again,I installed 2.5.0 quickly and it was pretty straight forward! Here is the error message I get regarding the 'virtio-9p-pci' mahmood@cluster:qemu-vm$ qemu-system-x86_64 -m 4000 -cpu Opteron_G5 -smp 2 -hda centos7.img -boot c  -usbdevice tablet -enable-kvm -device e1

Re: [Qemu-discuss] Accessing a shared folder

2017-08-30 Thread Mahmood
The security_model=none also doesn't work and get the same error. mahmood@cluster:qemu-vm$ qemu-system-x86_64 -version QEMU emulator version 1.7.0, Copyright (c) 2003-2008 Fabrice Bellard I know it is old but I think I installed this version three years ago due to the Rocks-6 versio

Re: [Qemu-discuss] Accessing a shared folder

2017-08-30 Thread Mahmood
>Could you please try to replace the -virtfs option with these two options: > >-fsdev local,id=shared,path=/home/mahmood/Downloads \ >-device virtio-9p-pci,fsdev=shared,mount_tag=Downloads Still get the same error! mahmood@cluster:qemu-vm$ qemu-system-x86_64 -m 4000 -cpu Opter

Re: [Qemu-discuss] Accessing a shared folder

2017-08-30 Thread Mahmood
>You don't have to write "fsdriver" here, but replace it with "local", >"handle" or "proxy". Still get the same error mahmood@cluster:qemu-vm$ qemu-system-x86_64 -m 4000 -cpu Opteron_G5 -smp 2 -hda centos7server.img -boot c  -usbdevice

[Qemu-discuss] Accessing a shared folder

2017-08-29 Thread Mahmood
=shared,path=/home/mahmood/Downloads,mount_tag=Downloads However, I get this error t_tag=Downloads: Parameter 'driver' expects device type What should I do? Regards, Mahmood

Re: [Qemu-discuss] No internet access from centos 7 minimal guest

2017-08-29 Thread Mahmood
Yes you are right. As I ping google.com, I see it finds the IP address but ping doesn't work. So, that mean network is fine. Thank you very much Regards, Mahmood On Tuesday, August 29, 2017, 2:03:12 PM GMT+4:30, Peter Maydell wrote: On 28 August 2017 at 18:28, Thomas Huth

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
of using vnc? Bu using vnc, I have to open another terminal and connect to the guest Regards, Mahmood

[Qemu-discuss] VNC port conflict

2017-01-22 Thread Mahmood Naderan
=host_files,restrict=off,smb=/home/mahmood,smbserver=10.0.2.4 -vnc :1 qemu: -vnc :1: Failed to start VNC server: Failed to bind socket: Address already in use It seems that another user is using his own guest with vnc :1 saremi 31191 5.4 4.7 3624016 3133112 pts/31 Sl+ 12:00 14:10 qemu -m 3000 -cpu

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.im

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

2017-01-16 Thread Mahmood Naderan
OK guys. I will try that to see if it works. Regards, Mahmood On Mon, Jan 16, 2017 at 7:06 PM, Jakob Bohm wrote: > On 16/01/2017 16:06, Mahmood Naderan wrote: > >> Hi, >> This is what I want to do via the Qemu: I have installed a windows guest >> with two drives (c

[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 an

Re: [Qemu-discuss] Guest screen resolution problem

2017-01-16 Thread Mahmood Naderan
>Check the display driver and screen resolution settings inside >the Windows Guest Yes thank you very much. Regards, Mahmood

[Qemu-discuss] Multiple snapshots with one guest user

2017-01-16 Thread Mahmood Naderan
, Mahmood

[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

[Qemu-discuss] Windows 7 as the guest

2016-04-29 Thread Mahmood Naderan
-kvm -cdrom /home/mahmood/win7.iso With the same command above, I installed windows xp without any problem. Any idea for that?  Regards, Mahmood

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

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

2016-04-02 Thread Mahmood Naderan
Hi,I want to be sure that windows guest will be installed correctly. So, I used the following option while trying to install Windows XP from an ISO file -fda /home/mahmood/qemu-vm/virtio-win-0.1.102_amd64.vfd With that I expect to install virtio, so that I can later use  -net user,smb=/home

[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

Re: [Qemu-discuss] installing solaris sparc as guest

2013-11-23 Thread Mahmood Naderan
I want to know is how can I find the bios files? For example, which bios version is suitable for sun4v r sun4u?   Regards, Mahmood

[Qemu-discuss] installing solaris sparc as guest

2013-11-23 Thread Mahmood Naderan
platform Niagara  Sun4v platform, Niagara none empty machine Which option defines such supported machine?   Regards, Mahmood

Re: [Qemu-discuss] passing network options to the guest

2013-11-22 Thread Mahmood Naderan
et from guest. However the samba connection doesn't work. I have passed "-smb /media/samba_share" to qemu and added the following entry to /etc/samba/smb.conf in the host [samba_share]     comment = QEMU share place     path = /media/samba_share     valid users = mahmoo

[Qemu-discuss] passing network options to the guest

2013-11-22 Thread Mahmood Naderan
on for that. So the device manager has a question mark on the ethernet entry. Is there any more option that I have to pass to qemu?   Regards, Mahmood

Re: [Qemu-discuss] On Qemu Networking

2013-11-20 Thread Mahmood Naderan
>The simplest answer is install virtmanager. It seems that there are many problems with my self installed qemu with virt-manager. I will try that as you said.   Regards, Mahmood

[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
chine?" Regards, Mahmood

[Qemu-discuss] setup samba for file transfer

2013-11-19 Thread Mahmood Naderan
printable = no browseable = yes write list = mahmood vb   the share folder is $ ls -l /media/ total 4 drwxrwxrwx. 2 root root 4096 Nov 19 06:50 samba_share Then I run the guest windows with "-smb /media/samba_share" option. Now in windows I get this error System error 1231 has occ

Re: [Qemu-discuss] two questions regarding the guest window

2013-11-18 Thread Mahmood Naderan
>I believe that resolution should be changed inside guest XP (in display >properties), because VNC is working just like monitor. You are right. Thank you very much.   Regards, Mahmood On Monday, November 18, 2013 11:29 PM, Dmitry <354...@gmail.com> wrote: Hi, > 2- When I r

Re: [Qemu-discuss] two questions regarding the guest window

2013-11-18 Thread Mahmood Naderan
ey stop at the same position. Any idea on the second question? The guest window is very small.   Regards, Mahmood On , Mahmood Naderan wrote: Same behavior :( I run this command on terminal1: $ qemu-system-i386 -usb -device usb-tablet,id=input0 winxp.img   In terminal2, I run $ vncviewer

Re: [Qemu-discuss] two questions regarding the guest window

2013-11-18 Thread Mahmood Naderan
Same behavior :( I run this command on terminal1: $ qemu-system-i386 -usb -device usb-tablet,id=input0 winxp.img   In terminal2, I run $ vncviewer 127.0.0.1:5900 Still I see that mouse positions are not sync Regards, Mahmood On Monday, November 18, 2013 7:59 PM, Dmitry <354...@gmail.

[Qemu-discuss] two questions regarding the guest window

2013-11-18 Thread Mahmood Naderan
of the screen. Searching the web, I didn't find a clear answer. 2- When I resize the guest window, it remains at 640*480. The guest is windows xp and the host is Scientific Linux 6.3   Regards, Mahmood

Re: [Qemu-discuss] PCI bus not available

2013-11-18 Thread Mahmood Naderan
Unfortunately the machine is in the rack on a remote site with no sound. I haven't even try on the host os.   Regards, Mahmood On Monday, November 18, 2013 4:58 PM, Programmingkid wrote: On Nov 18, 2013, at 7:16 AM, Mahmood Naderan wrote: > > >I think the IBM PC 64 b

[Qemu-discuss] Using telnet

2013-11-18 Thread Mahmood Naderan
00 telnet: 127.0.0.1:3000: Name or service not known 127.0.0.1:3000: Unknown host $   And in the first terminal, I see that it is still waiting for connection! What is the problem? Regards, Mahmood

Re: [Qemu-discuss] PCI bus not available

2013-11-18 Thread Mahmood Naderan
>I think the IBM PC 64 bit is what you want. Yes thanks a lot. it works   Regards, Mahmood

Re: [Qemu-discuss] PCI bus not available

2013-11-17 Thread Mahmood Naderan
ze MIPS MIPS64 MIPS64 EL MIPS EL Power PC 32Bit Power PC 64Bit Power PC EMB 32Bit SH4 SH4 EB Sparc 32Bit Sparc 64Bit IBM PC 64 Bit   What is the solution then? Regards, Mahmood On Sunday, November 17, 2013 7:15 PM, Programmingkid wrote: >The first thing that strikes me is the fact y

Re: [Qemu-discuss] PCI bus not available

2013-11-17 Thread Mahmood Naderan
Video Card: Default Memory Size: 256 Use Sound: Yes Fullscreen Mode: No Use Snapshot Mode: No Use Local Time: No The arguments are /usr/local/bin/qemu-system-arm -monitor stdio -soundhw es1370,ac97 -m 256 -S -cdrom /home/mahmood/Downloads/Microsoft.Windows.XP.Professional.SP3

[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