ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Александр Шеметов" <shemetov-174@yandex.ru>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] QEMU/KVM и встроенный SMB сервер
Date: Thu, 29 Oct 2020 11:31:19 +0500
Message-ID: <6940761603941357@iva8-c4b4179e2e3a.qloud-c.yandex.net> (raw)

> <qemu:commandline>
> <qemu:arg value='-net'/>
> <qemu:arg value='nic,macaddr=52:54:00:f0:52:0a'/>
> <qemu:arg value='-net'/>
> <qemu:arg value='user,smb=/path/to/share'/>
> </qemu:commandline>

Такой формат использовал, с ним ВМ запустилась:

<qemu:commandline>
<qemu:arg value='-netdev'/>
<qemu:arg value='user,id=n1,smb=/path/to/share'/>
<qemu:arg value='-device'/>
<qemu:arg value='e1000,netdev=n1'/>
</qemu:commandline>

Но при этом подключиться к шаре не могу:

$ smbclient -L 10.0.2.4
protocol negotiation failed: NT_STATUS_CONNECTION_DISCONNECTED

Пока в качестве гостя проверяю на LiveCD starterkit.

Те же самый аргументы при ручном запуске через терминал снова
нормально запускают встроенный SMB сервер:

$ qemu-system-x86_64 -netdev user,id=n1,smb=/path/to/share -device e1000,netdev=n1 \
-smp 1 -cpu host -enable-kvm -m 1024 -cdrom alt-p9-xfce-20200912-x86_64.iso

Похоже прав не хватает _libvirt для запуска SMB сервера...
Как быть ?


             reply	other threads:[~2020-10-29  6:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-29  6:31 Александр Шеметов [this message]
2020-10-29 12:36 ` Александр Шеметов

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6940761603941357@iva8-c4b4179e2e3a.qloud-c.yandex.net \
    --to=shemetov-174@yandex.ru \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git